Jump to content

Archived

This topic is now archived and is closed to further replies.

Crayz

PHP/HTML Forms

Recommended Posts

I am posting to ask how to store an input from an html form, heres an example:

[u]my html form[/u]:


[!--sizeo:4--][span style=\"font-size:14pt;line-height:100%\"][!--/sizeo--]Form.html[!--sizec--][/span][!--/sizec--]
<form name="form1" method="post" action="email.php">
<input name="email" type="text" size="45">

And heres where I collect the input, but the input isnt stored.

[!--sizeo:4--][span style=\"font-size:14pt;line-height:100%\"][!--/sizeo--]info.php[!--sizec--][/span][!--/sizec--]
$email = $_POST['email'];



How would I set $email as the input [b]for good[/b], not just for the time.

Thanks

Share this post


Link to post
Share on other sites
If 'for good' you mean forever and ever, use a mysql table or a text file. If you mean just while the visitor stays connected to you, then use session variables.

Lite...

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.