Post Data In Forms

Joined: 11/28/2008

My old puter crashed and it had all my code and I've not touched this stuff in 9 months or so, I'm slowly picking it back up but I perfer to do things the way I learned origonally

Lets say I simply have a form

The Quote For The Top Of The Web Site
<BR><BR>
 
<form method="post" action="topquotep.php">
<BR><BR>
 
First Name: <input size="20" type="text" name="thequote" value="<?PHP echo $quotetx1; ?>" 
 
/> 
<BR><BR>
<input type="submit" />
<input type="reset" />
</form>

I used to be able to have a second page topquotep.php and have it start posting info and thats what im having a hard time googling
I can't remember exactly what it was, but it might have had @post or something and then a bunch of stuff to sprip codes..
anyone have any ideas?

G&G Podcast Host
Matt Farina's picture
Joined: 06/01/2006
Some things

There are some things the page that processes the request will have. First, the variable that has the contents of the form will be $_POST with each name as a key on that array. You can do something like this to see the structure and values on a submitted form:

print '<pre>';
print_r($_POST);
print '</pre>';

Other things will depend on your config. You might need to act on the text to strip slashes out, etc.

Matt Farina
Geeks and God Former Co-Host
www.mattfarina.com

Joined: 11/28/2008
fixed

Thanks I actually found out what I needed

@extract($_POST);

dang sorry I used to do this for a hobby and loved it but, haven't touched it forever, too much hospital time too much perscription drugs too much garbage :)

Thanks guys