simple question

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
toms100
Forum Contributor
Posts: 119
Joined: Wed Feb 26, 2003 10:29 am
Location: Bristol,UK

simple question

Post by toms100 »

ok what i wnat to do is to redirect a user to a webpage (after they have submited a form)
i tried searching on google but all i got is sites where people had used php and were redirecting!
i want something similar to asp's response.redirect.

many thanks

Tom
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

http://www.php.net/manual/en/function.header.php
viewtopic.php?t=1157

Code: Select all

header('Location: http://www.mysite.com/page.php');
Mac
toms100
Forum Contributor
Posts: 119
Joined: Wed Feb 26, 2003 10:29 am
Location: Bristol,UK

Post by toms100 »

thanks very much twigletmac:)
Post Reply