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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hmdnawaz
Forum Newbie
Posts: 14
Joined: Tue Dec 21, 2010 10:55 pm

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

Post 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
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

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

Post 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.
Post Reply