form data is not being transferred to php page

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

form data is not being transferred to php page

Postby varunmc » 04. June 2007 11:14

I am new to web development.

I was creating a registration form titled "register.html" and all the data items were put in a
<form name="new_user" action="register.php" method="post">

Now, whenever i press the SUBMIT button, all the data items are supposed to be accessible by the php script on the "register.php" page as data variables, but they are not.

I am not able to access these data items so i can store them in the database. Please help. Why are the data items not being transferred? I am sure that it will work if i upload these pages to a web server...but why aren't they working on my computer? I am using xampp package.

Please Help!
varunmc
 
Posts: 1
Joined: 04. June 2007 11:08

Postby Wiedmann » 04. June 2007 11:28

I am not able to access these data items so i can store them in the database. Please help. Why are the data items not being transferred?

You have read the php manual about "using external variables"?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Codesmith » 04. June 2007 15:11

Register Globals is now disabled by default by all recent versions of PHP, for security reasons.

The correct way to access forum data is through the various super global arrays.

In your case your data should be stored in the $_POST array.

http://us.php.net/variables.predefined
Codesmith
 
Posts: 101
Joined: 31. March 2007 21:11


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 59 guests