Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 6 of 6
Search took 0.06 seconds.
Search: Posts Made By: Centaur
Forum: MySQL 08-10-2002, 05:54 AM
Replies: 2
Views: 2,061
Posted By Centaur
Why don’t you escape all those " in the...

Why don’t you escape all those " in the string being echoed with a backslash?
echo ("<font face=\"Comic Sans MS\" size=\"3\" color=\"#FFFFFF\"><a href=\"$url\">$name</a><br><font face=\"Comic...
Forum: PHP 08-02-2002, 05:27 PM
Replies: 10
Views: 2,281
Posted By Centaur
dist means distribution, that&rsquo;s the default...

dist means distribution, that&rsquo;s the default template which you are supposed to copy and modify.

And one advice: leave register_globals off and get a habit of accessing arguments via $_GET...
Forum: Perl/ CGI 07-29-2002, 02:51 PM
Replies: 4
Views: 2,012
Posted By Centaur
Get the manual and read the perlre part....

Get the manual and read the perlre part. Understanding regular expressions is essential for text analysis.&hellip; || $FORM{'data8'} !~ /^[0-9A-Za-z]*$/ || &hellip;This subexpression evaluates to...
Forum: Perl/ CGI 07-28-2002, 06:51 PM
Replies: 4
Views: 2,012
Posted By Centaur
$data1 =~ s/[^ 0-9A-Za-z]//g; $data2 =~ s/[^...

$data1 =~ s/[^ 0-9A-Za-z]//g;
$data2 =~ s/[^ 0-9A-Za-z]//g;
$data3 =~ s/[^ 0-9A-Za-z]//g;
$data5 =~ s/[^0-9A-Za-z]//g;
$data6 =~ s/[^0-9]//g;The last one will only do what you asked, that is, it...
Forum: PHP 07-27-2002, 11:33 AM
Replies: 3
Views: 1,614
Posted By Centaur
if (preg_match("/^((\\w+\\W+){0,19}\\w+)/",...

if (preg_match("/^((\\w+\\W+){0,19}\\w+)/", $string, $matches)) {
echo "<p>First 20 or less words: ". $matches[1]. "</p>";
}
Forum: PHP 07-27-2002, 10:40 AM
Replies: 39
Views: 9,005
Posted By Centaur
Lightbulb There is an approach which is used in many forum...

There is an approach which is used in many forum engines. In fact, this very forum uses it. When the user posts a form, the form handler does not immediately show the result page. Instead, the user...
Showing results 1 to 6 of 6

 
Forum Jump

All times are GMT +1. The time now is 10:22 PM.