i have been able to pass value from form to ajax and to php to insert into my database. Now there is a value which determines whether to redirect to page 1 or page 2 after inserting. As well i alert that the form was successful. So i wanna know how to do pass this values back to ajax and how to redirect to the page i require.Thank you very much in advance.
Jump to Post
Using Ajax to redirect (php-wise) will not work. The Ajax is basically a js-driven script causing certain things to happen on the server, which the client (js) is oblivious to. The js script is informed of the status of the msg and any data sent from the server. The fact …
All 3 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.