I have an HTML form that posts values to a web service that sends back a JSON status or error message. This form is embedded in WordPress. How might I access the returned value and display an error message?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It would involve some Javascript, I’d highly recommend using jQuery with it’s ajax function:
That will make an HTTP post to the URL contained in the form’s action attribute, and load the returned JSON string into a javascript object.