Jump to content

Recommended Posts

This should be an easy on.  I have a from in HTML that is inside a Print statment. What I need is when they click on SUBMIT for it to call a PHP Function and to take the value of 2 text boxes and make them into $something for php... I need to do this without the page refreshing or reloading... Any thoughts?
Link to comment
https://forums.phpfreaks.com/topic/15745-stupid-question/
Share on other sites

Ok, forget the form part....

Can I just set a php $variable to a HTML Textbox? Then I will just make a button that will call the function that has the code to set the value......

Does that make sense? It does not need to be a form, or a post, just something like    $phpVariable = document.getElementById('textbox').value;

I know that is Javascript, but I need to merge the gap from JavaScript and PHP..... and I dont even know were to start to look
Link to comment
https://forums.phpfreaks.com/topic/15745-stupid-question/#findComment-64358
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.