Jump to content

Making a text box change a varible


Lee-Bartlett

Recommended Posts

At the moment there is a varible called $to with an email in, i need a text box, which will change that data in that varible to what ever i put in the text box, if you know what i mean. Say this is the varible

 

$to = bob  .........  puts jim in text box then submits it ........... new varible ............ $to = jim

 

anyone got a tut on how to do that?

Link to comment
Share on other sites

Depending if you post or get

 

$_POST

$_GET

 

After you enter the info the text box you have to submit that page in order to do what you want. During the <form> tag declaration define method as get or post depending on which use the above to access what you chose.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.