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.
---------------------------------
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail Beta.
[Non-text portions of this message have been removed]
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/