Welcome visitor
* Login
* Register
It is currently July 24th, 2019, 5:07 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Server Side » PHP



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  Processing an Html form
PostPosted: February 4th, 2009, 8:17 pm 
User avatar

Posts: 63
Hi, again..

I had been just helped out by Amadeus in creating a form on html, now im trying to use it and i was told that php can do that. Im totally new with this php, so I will appreciate any guidance on this subject, thank you guys!


Top
 Profile  
 
  Re: Processing an Html form
PostPosted: February 4th, 2009, 8:33 pm 

Posts: 61
Once that you have your form posted, whether using POST or GET, you have all the information on one array. To use a variable that is within an array you will need to call the hole array and then specify which variable you need.

Suppouse that you have used the URL method, the code to 'print' a variable named 'x' will be
echo $_GET['x'];

or, to make things easier, you can use the 'extract' function to brake the array into individual variables, see
extract ($_GET);
echo $x;

and the same would be for the POST method, just replace the $_POST for the $_GET.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Server Side » PHP


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron