Jump to content


Photo

PHP/HTML Forms


  • Please log in to reply
1 reply to this topic

#1 Crayz

Crayz
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 23 April 2006 - 06:08 PM

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

my html form:


[!--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 for good, not just for the time.

Thanks

#2 litebearer

litebearer
  • Members
  • PipPipPip
  • Advanced Member
  • 2,357 posts
  • Locationwhite lake michigan

Posted 24 April 2006 - 02:32 AM

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...

all the brothers were valiant!

[br][br]The truely intelligent people are not those who create the dots; rather they are they ones with the ability to connect the dots into a coherent picture




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users