How to process form with php & ajax?
html:
<form> <input type="radio" value="1" /> <input type="radio" value="2" /> <input type="radio" value="3" /> <input type="radio" value="4" /> <input type="button" id="go" value="go"/> </form>
How to collect value from radio, then submit it in php $value=''; and show to user this value after clicking button #go?
I want to make simple form. User chooses value from form, then clicks on button. This value will be shown to user instantly and it will be adds to mysql database.
For the HTML, don’t forget to give the radio buttons a
nameattribute.For the Javsacript, specify your file instead of
file.phpFor the PHP