<form> tags won't send data after submission.

Problems with the Windows version of XAMPP, questions, comments, and anything related.

<form> tags won't send data after submission.

Postby sP00N2 » 28. August 2008 01:51

I transferred some working php pages over to a new xampp installation (latest version) and when ever i submit a form it wont carry over the data to the next page. Any ideas on how to fix this?
sP00N2
 
Posts: 3
Joined: 28. August 2008 01:48

Postby Nobbie » 28. August 2008 11:40

It carrys over - but your php script relies on very very old "register_globals=On".

The variables of your form are *not* transferred as $name for example, but as $_POST['name'] or $_GET['name'] (depending on method type).

$_POST and $_GET are arrays which contains the variable values.

Either set register_globals = On in php.ini (what is *not* recommended, as register_globals is not any more supported from PHP6), or change your script as mentioned above.

See http://www.php.net/manual/en/language.v ... ternal.php for detailed information.
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 150 guests