--- In [email protected], YOGESH ROMANTIC <[EMAIL PROTECTED]>
wrote:
>
> Hello Sir,
> Yes! i have same erroe yet. actually i have make one html file
having one textfield and One Submit button, and i want if i click
directly on submit button without inserting data in textfield so
proper message should display on the screen "plz enter the text in
textfield". as u provide me code i use it but error is ...->
>
> Parse error: parse error, unexpected T_STRING in
c:\Inetpub\wwwroot\magic.php on line 7
>
> i am using PHP5 version. and the html code is--->
>
> <Html>
> <head>
> <form method =post action ="find.php">
> </head>
> <title> TextField Program</title>
> <input type="text" name=name>
> <input type=submit>
> </html>
>
> and PHP code is--->
>
> <?php
> if(is_array($_POST)&& isset($_POST['submit']))
> {
> if(!isset($_POST['name'])
> {
> $err = 1;
> $errmsg[]= "enter the text plz";
> }
> else
> {
> $name = addslashes($_POST['name']);
> }
> }
> ?>
> this is not run the program. and plz tell me about
magic_quotes_gpc how to i know that magic_quotes_gpc is on or off
and where should this file is saved by PHP5.
> please give me the proper code for above display message.
>
I don't get that error message. Instead, I get "Parse error: parse
error, unexpected '{' in C:\Development\Webpage\ROOT\test.php on line
5", which is caused by a missing closing parenthesis on line 4. Now
I'm running PHP 4.3 because lots of servers haven't upgraded to 5.0
yet, but I can't imagine that accounting for a difference.
get_magic_quotes_gpc() returns the state of magic quotes. Personally,
I think magic quotes was the one stupid thing that the developers of
PHP did. I use a set of validation routines that, among other things,
removes any magic quotes. I'd rather take care of that myself.
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/