I set up this simple message form using php and it works in everything ( IE, AOL, Opera) execpt Netscape. It's giveing some Method Error. Anyone have any Ideas ?
Here is the URL
http://chicostateballroom.com/contact.phtm
Thanks
Chuck
| SitePoint Sponsor |





I set up this simple message form using php and it works in everything ( IE, AOL, Opera) execpt Netscape. It's giveing some Method Error. Anyone have any Ideas ?
Here is the URL
http://chicostateballroom.com/contact.phtm
Thanks
Chuck
"Happiness doesn't find you, you find happiness" -- Unknown
www.chuckknows.com





By default IE will post to the current doc if the action attribute in your form is not set. In Netscape 4.x it needs to be specified like <form action="<? print $PHP_SELF; ?>" method="post"> It is good practice to always put an action in.
Please don't PM me with questions.
Use the forums, that is what they are here for.





What is the difference in what you did and this ?Originally posted by freddydoesphp
By default IE will post to the current doc if the action attribute in your form is not set. In Netscape 4.x it needs to be specified like <form action="<? print $PHP_SELF; ?>" method="post"> It is good practice to always put an action in.
<form method=\"post\" action=\"$php_self\">
Thanks
Chuck
When I did it the way you showed above I got this
Parse error: parse error in /www/chicostateballroom/contact.phtm on line 80
Last edited by Chuckie; Feb 6, 2001 at 15:52.
"Happiness doesn't find you, you find happiness" -- Unknown
www.chuckknows.com





$PHP_SELF is a server variable, so it needs to be in all CAPS not $php_self. Other than that there is no difference.
$PHP_SELF //Prints correctly
$php_self //Doesn't exist
Please don't PM me with questions.
Use the forums, that is what they are here for.





Thanks .. it all came down to caps .. how funny
Chuck
"Happiness doesn't find you, you find happiness" -- Unknown
www.chuckknows.com
Bookmarks