Can't POST GET on Apache ## HELP ! ##
Posted 02 April 2003 - 05:07 PM
installed apache: works (serves pages)
installed php: works ( php code is executed properly at shell )
installed phpmod: works ( php/html code is executed properly and served by apache)
installed phpMyAdmin: works (can login, create and change databases)
So what\'s the problem you ask ???? Even though phpMyAdmin and also Mpanel work flawlessly I can not post or get a simple test form. The form works fine on other servers.
----- test.php ------
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<meta http-equiv=\"content-type\" content=\"text/html; charset=ISO-8859-1\">
<title><? echo \"Freakin Test\"; ?></title>
<form method=\"post\" action=\"post.php\">
<input type=\"text\" name=\"textbox\" maxlength=\"12\" />
<input type=\"submit\" value=\"Submit\" />
------ post.php ------
<? echo \"Test:\" ?><br>
<? echo \"<br>$textbox<br>\" ?>
I\'m on my third day and still stuck, Please Help!!
Posted 02 April 2003 - 09:33 PM
register_globals = on
It should be on or around line 355
I found this fix somewhere in this forum earlier when I had the same type of problem when trying to get a form to work.
Hope that works for you...
Posted 02 April 2003 - 11:44 PM
as of version 4.2.0 register globals were set to be off by default for security reasons.
If you intend to write alot of php code, download others php code, or share the code that you write in php I would suggest going with the new standard.
leave register_globals off
when you want to use the variable from your form in post.php
access it like this
if your form method was GET you would use
Posted 03 April 2003 - 02:30 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users