Jump to content

Stupid Question


grazzman

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

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.