Reply
php link to a page
Old 05-09-2006, 12:52 PM php link to a page
Novice Talker

Posts: 7
hi iv got an online form which uses php to send the data to an email address. when the user has submitted their details i want the page to link to another specific page. the code im using is only bringing up a screen with a thankyou comment.i imagine you replace this with the page you want but not sure of code.thanks

if(mail($to,"Comments From Your Site",$message,"From: $email\n")) {
echo "thankyou for your comment;
} else {
echo "There was a problem sending the mail. Please check that you filled in the form correctly.";
pellio is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 05-09-2006, 01:07 PM Re: php link to a page
chrishirst's Avatar
Super Moderator

Posts: 15,272
Location: Blackpool. UK
if (...) {
header("page_to_go_to");
} else {
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System | Bits & Bobs
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to php link to a page
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.10986 seconds with 12 queries