Recommend jQuery 1.6.4 ajax php form mail scripts?
I've been searching for script that fit jQuery 1.6.4 ajax php that I can use. Quite a lot that I've come across is part of script that is taking alot of time to put together. Is there anything that is clearly descriptive from start to finish. A form with check.php script too if that is possible.
I'm using a jQuery 1.6.4 form mail using ajax post with php script. A jQuery error message if a single input field is not filled.
To register a ID number and select module subject 1 or subject 2 with and submit. This will go to subjectData.mysql database
I've already designed a form mail using a jQuery 1.6.4.
<div class="field"><!-- Start Login-->
<form action="register.php" method="post" class="register">
<fieldset class="ui-widget ui-widget-content">
<label for="textinput1"><strong>Log in to register a module</strong></label>
<input id="textinput1" placeholder="people number" type="text" /></fieldset>
<fieldset data-role="controlgroup">
<input id="textinput2" placeholder="Password" type="password" /></fieldset>
<fieldset data-role="controlgroup" data-mini="true">
<input type="radio" name="radio-choice-1" id="radio-mini-1" value="modNo1" checked="checked" />
<label for="radio-mini-1">subject 1</label>
<input type="radio" name="radio-choice-1" id="radio-mini-2" value="modNo2" />
<label for="radio-mini-2">subject 2</label></fieldset>
<input type="submit" data-theme="a" name="submit" value="Register" />
<button data-theme="b" id="reset" type="reset">Reset</button>
</form>
</div>
<!-- END Login-->
</div>
I agree with prodigitalson, you need to know some php to write the code you need and build the response with php for the jquery ajax to receive it and do some javascript magic according to that response. But you have to code that custom bit.
The form will most likely send the POST data to check.php, where it will all be processed, and it will then build a json encoded respopnse to reply to the page with the form. You need then some javascript code on that page to:
$_POST
array in PHP) and prepare a json encoded response (build an array and when done, echo the output of json_encode
ing it).Some sample code on how to respond with php to a jquery ajax request here