Jump to content

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. 

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.