0

I am writing a simple web that has a form that needs to be validated on server side. After validation, if success, server will redirect to another page, otherwise, there will be an error popup on the current page, keeping all inputted values.

I am thinking of using Ajax but I don't have much experience on this. Please give me some ideas.

TomNg
  • 1,897
  • 2
  • 18
  • 25

1 Answers1

0

Please have a look at this thread. You will have to work on the redirection though.

Validate data on server using AJAX

Use this for redirection in javascript,

document.location='you/redirect/url'
Community
  • 1
  • 1
K Neeraj Lal
  • 6,768
  • 3
  • 24
  • 33