Page 1 of 1

How to redirect to another page on the submit button of form

Posted: Fri Jan 07, 2011 10:32 pm
by hmdnawaz
I have two pages. one is insert_events.php and the other is veiw_events.
In insert_events i have a form which have a submit button.
I want when i click on the submit button, it redirects me to the view_events.php page showing the events.

Any idea about this problem will be appreciated.

Thanks

Re: How to redirect to another page on the submit button of

Posted: Sat Jan 08, 2011 1:22 am
by d3ad1ysp0rk
I assume you want to process the data they submitted before redirecting?

I would have the form submit to the same page (insert_events.php), then redirect using the Location header.