Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Ezilon Directory   I Sell Pagerank   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 03-12-2004, 01:23 PM   #1 (permalink)
Inactive
 
Pipeline-Webdesign's Avatar
 
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
iTrader: 0 / 0%
Latest Blog:
None

Pipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the rough
Send a message via AIM to Pipeline-Webdesign Send a message via MSN to Pipeline-Webdesign Send a message via Yahoo to Pipeline-Webdesign
For all you PHP GURUS

This is my PHP page that sends me an email when someone submits a form. At the bottom of the code, it prints a message in regular HTML... can someone give me the code to direct it to another page once the form is submitted? THANKS!

[code:1:2e863b463b]<?php


$mailto = "support@richlinetechnical.com";
$subject = "Richline Technical Services";


$name = stripslashes($_POST['uname']);
$email = stripslashes($_POST['email']);
$phone = stripslashes($_POST['phone']);


$message = "This email is submitted from a RichlineTechnical.com viewer. It was submitted by the index.htm page\n\n";
$message .= "Sender: $uname: ($email)\n";
$message .= "Phone: $phone\n\n";

mail($mailto, $subject, $message, "From: $uname <$email>");
?>

<div align=center>
<table width="90%" height="100%" cellpadding=0 cellspacing=0>
<tr>
<td height="90%"><p>Thank you for contacting Richline Technical Services. We will contact you within 1 business day</p></td>
</tr>
</table>
</div>[/code:1:2e863b463b]
Pipeline-Webdesign is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 03-12-2004, 02:09 PM   #2 (permalink)
v7n Mentor
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 1,137
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
header("Location:www.domain.com/page.php")
hatchet is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-12-2004, 02:10 PM   #3 (permalink)
Inactive
 
Pipeline-Webdesign's Avatar
 
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
iTrader: 0 / 0%
Latest Blog:
None

Pipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the rough
Send a message via AIM to Pipeline-Webdesign Send a message via MSN to Pipeline-Webdesign Send a message via Yahoo to Pipeline-Webdesign
Quote:
Originally Posted by hatchet
header("Location:www.domain.com/page.php")
where in the code to i put that?
Pipeline-Webdesign is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-12-2004, 08:18 PM   #4 (permalink)
v7n Mentor
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 1,137
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
You should put it at the end of any functions you have. The whole code will run and then it redirects. I would think that you would want the output message on the redirected page. So it sends the email.. then redirects to a Thank you page.
hatchet is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-13-2004, 05:42 AM   #5 (permalink)
sim
Banned
 
Join Date: 01-23-04
Posts: 2,367
iTrader: 0 / 0%
Latest Blog:
None

sim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nice
You cant redirect after outputting html to a page.
sim is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-13-2004, 05:59 AM   #6 (permalink)
v7n Mentor
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 1,137
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
That's why I said the function sends the email then redirects to the thank you page. The HTML would be on the thank you page (redirected page).
hatchet is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Suggestion from all SEO Gurus pankaj.sharma SEO Forum 7 11-15-2007 08:26 AM
Need some urgent help from the SEO gurus,.. anyone? eiken SEO Forum 17 11-13-2007 06:15 AM
i need help from the gurus here please mike_j_d Coding Forum 3 04-24-2004 01:25 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 08:27 PM.
© Copyright 2008 V7 Inc