Urgent..please help (PHP) ( 6 Views )
-
how am i supposed to prompt out a message box asking to enter the username and password for deleting entries in the guestbook...
thanks
-M!C|-
(michelle)
(MEHMET ALİ DEMİR, Cuba)
still cant...i really dont know how to do,...
so many errors...
(FİKRET, American Samoa)
Quote:
Originally Posted by miclch
Parse error: parse error, unexpected T_VARIABLE in /home/dit203/B0000820/public_html/Sign.php on line 23
$errmsg ="";
if (empty($name))
{
$errmsg = "<li>You have to key in a proper name!!!\n";
}
-M!C|-
|
change it to this...
$errmsg = "<li>You have to key in a proper name!!!<br>";
you are mixing non html syntax with html
(özgür, Paraguay)
change
Header("WWW-Authenticate: Basic realm="Secure Area"");
to
Header("WWW-Authenticate: Basic realm=\"Secure Area\"");
you need to escape your double quotes if you are using it inside double quoted string.
(okan, Bolivia)
authentitcate error.....urgent
Parse error: parse error, unexpected T_STRING in /home/dit203/B0000820/public_html/Edit.php on line 32
function authenticate ()
{
Header("WWW-Authenticate: Basic realm="Secure Area"");
Header("HTTP/1.0 401 Unauthorized");
echo "Please enter the username and password\n";
exit;
}
?>
(İLKNUR, Egypt)
another error
Parse error: parse error, unexpected T_VARIABLE in /home/dit203/B0000820/public_html/Sign.php on line 23
$errmsg ="";
if (empty($name))
{
$errmsg = "<li>You have to key in a proper name!!!\n";
}
-M!C|-
(ali, Gabon)
if this is in a function... i think its logic is wrong... you are printing the error message and then returning it?
change
EQQ to EQQ; (semicolon)
(sercan, Mexico)
another error
Parse error: parse error, unexpected '}' in C:\Program Files\Apache Group\Apache2\htdocs\Sign.php on line 69
else
{
print <<<EQQ
<p>
<font color = red>
<b>
<ul>
$errmsg
</ul>
Please Try Again
</p>
EQQ
return $errmsg;
}
?>
-M!C|-
(CANDY, Rwanda)
if(emplty($errmsg))
empty is spelled wrong
(ice , Anguilla)
another error
another error after i did that
Parse error: parse error, unexpected T_STRING in C:\Program Files\Apache Group\Apache2\htdocs\Sign.php on line 51
if(emplty($errmsg))
{
$query = "insert into questbook"
."(name,location,email,url,comments,remote_addr)values"
."('$name','$location',$email','$url','$comments','$REMOTE_ADDR')";
safe_query($query);
print "<h2>Thanks,$name!!!</h2>\n";
}
else
...
-M!C|-
(abdullah, Singapore)
change
if(mysql_num_rows($result)>0
to
if(mysql_num_rows($result)>0)
(gelin sikiim, Kazakhstan)
new error..please help...urgently need
im having this error...hope you can help
Parse error: parse error, unexpected '{' in /home/dit203/B0000820/public_html/Sign.php on line 39
here is my code.....the one in bold is having error!!!!
if(empty($email) || !eregi("^[A-Za-a0-9\_]+@[A-Za-z0-9\_-]+[A-Za-z0-9\_-]+.*",$email))
{
$errmsg .="<li>$email doesn't looks like a valid email address\n";
}
else
{
//if the format is OK, check to see if this user has already
//signed the guesrtbook.Multiple entries are not allowed.
$query = "select * from guestbook where email = '$email'";
$result = safe_query($query);
if(mysql_num_rows($result)>0
{
$errmsg = "<li>$email has already signed this guestbook.\n";
}
}
//perform a very simple check on the format of the url supplied
//by he user (if any)
if (!empty($url) && !eregi("^http://[A-Za-z0-9\%\?\_\:\~\/\.-]+$",$url))
{
.....
-M!C|-
(Alperen , Tokelau)
I have a little time... please PM me sometime soon with some code or where you are stuck and I might be able to help or at least guide you in some kind of direction. Or you can post your problems here and others will surely help if Im gone.
(halil, Northern Mariana Islands)
ok thanks...
but there is one problem.....im new to this...and i am really stuck with this assingment.....
i dont really know how to start it...ive got the example coding..is just that i dont know how to combine everything together
just see whether you can help...
thanks
-M!C|-
(nimet, Oman)
(batuhan, Kazakhstan)
Quote:
Originally Posted by Wbmstr84
are you looking for a login script? If not please... post some code?
|
yes....
(dkfskd, Seychelles)
are you looking for a login script? If not please... post some code?
(yusuf, Korea, Democratic People's Republic of)
are you getting this code from somewhere or writing it yourself?
(onur, Andorra)
Related Topics ... (or search in 1.720.883 topics !)
urgent problem with php domxml_open_mem(), php extension php_domxml.dll. need help! (2) very urgent! - php help (15) php help - urgent (3) urgent php help! (4) urgent help: which php function to use? (10) urgent php help needed. (8) need urgent help - php form (9) urgent : i have a php problem (5) curl with php.. help... urgent (5)
copyright © 2007-2031 Pfodere.COM ( 4 Pfoyihuee Online )
|