0

I have an HTML "Contact us" form which I plant on my client's HTML page,this form has an 'action' property with value that leads to my production system. When my production system gets the form , it runs a vital code that arranges the type of request by type of request and perform some other QA at the code behind.. In case that the page has an error within our production system, we would like to notify the user that completed the form at our clients side that there was an error. The problem is that when the form was sent we have no way to get back to the first form as a post was fired.

My question is , if there is any way to come back to the same page where the post was sent to the original page so we can notify the error AFTER the page was sent?

In other words, I need the form to be sent to the a address at the action property , and still make the browser stay at the same page.

Thanks.

1 Answer 1

1

You could embed a ReturnURL as part of the post data, that would identify where the post came from. Or perhaps embedding a customer code would be a better idea, that way you are not blindly redirecting to a URL (which could be hacked).

3
  • Thanks for you replay,unfortunately that doesn't help me, I need the form to be sent to the a address at the action property , and still make the browser stay at the same page. Mar 21, 2012 at 15:25
  • Then maybe an AJAX/JSON request would better suit the situation?
    – mgnoonan
    Mar 21, 2012 at 16:48
  • I'd be grateful if you could attach an example :) Mar 22, 2012 at 7:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.