So as you may have noticed I've made a few posts recently regarding form validation and I've appreciated all the help so far. I wanted to make sure my form validated as best as possible client side before being submitted to the server.
The form data is being posted via a PHP submission that I have no control over. It's possible that some of the items may fail server side validation.
The form is submitted and any response from the script winds up on "https://www.website.com/index.php" displaying on a freshly loaded webpage.
Rather than send the user to the page I want to capture the response and then display a relevant message or perform an action based on the return. So I suppose what I'm asking is how I would load that page response into a variable instead loading the page in the browser?
I literally don't even know where I want start to go about this!
Question
Axel
So as you may have noticed I've made a few posts recently regarding form validation and I've appreciated all the help so far. I wanted to make sure my form validated as best as possible client side before being submitted to the server.
The form data is being posted via a PHP submission that I have no control over. It's possible that some of the items may fail server side validation.
The form is submitted and any response from the script winds up on "https://www.website.com/index.php" displaying on a freshly loaded webpage.
Rather than send the user to the page I want to capture the response and then display a relevant message or perform an action based on the return. So I suppose what I'm asking is how I would load that page response into a variable instead loading the page in the browser?
I literally don't even know where I want start to go about this!
Many thanks,
Alex
Link to comment
Share on other sites
6 answers to this question
Recommended Posts