Hi Guys,
As you can see from my post count I have literally just joined.
I'm not new to PHP itself but am new to the concept of AJAX.
I was unsure if this is the correct place to post it, if not please let me know and I'll happily relocate myself (so to speak)
I actually want help creating a AJAX script, for now the variables and what not don't matter as I will be able to understand it enough to change it and adapt it to my own content. I want this all to occur without having to completely refresh the page.
Main Page: Form
On this page a standard form, easy enough, I can handle validation and what not easily enough.
once $('#FormID').submit() (instead of onclick because a barcode scanner is used to input a serial at the end of the form which hits 'Enter') is called I want the page to save to a database. Upon doing so it will obviously return valid or invalid.
If returned invalid it needs to obviously handle the error by remaining on the form and displaying the error returned.
If returned valid it needs to 'redirect' (without refreshing??) to a page that will initiate a pop-up. This pop-up script has been designed to print off a special booking sheet upon opening and will close itself.
About 3-4 seconds after the popup is initiated it needs to return to a fresh form with a dialogue at the top saying:
Quote:
|
This booking was entered as { mysql_insert_id }
|
I cant give you existing information, which is why all I need is a form with maybe 3-4 items on it and all other functionality bundled up in a zip or rar file. I of course am willing to pay as this isnt as simple as a 5 minute code fix. Just quote me a rough price for it.
Summary: Submits to a MySQL database, able to send to a page to print (in a pop up) and redirect back to main (fresh) form ready for a new submission without redirecting.
Again if this is in the wrong forum or found to be inappropriate according to board guidelines please notify me and I will adjust to suit.
Thanks, and I appreciate all your guys help!