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
https://forums.phpfreaks.com/topic/133535-making-a-text-box-change-a-varible/
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.

If you can't figure out how to break that up into several files, what makes you think you are ready to jump into databases?  No offense, but I think you probably need to start out with square one: a "hello world" tutorial.  Actually, you probably need to start with learning HTML first. 

Archived

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

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