Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Having trouble with php mail form...
Old 02-24-2011, 02:13 PM Having trouble with php mail form...
Average Talker

Posts: 16
Name: Jen Starbuck
Trades: 0
I'm working on the php forms for the following 2 pages:

http://www.markandjentietheknot.com/contact.html
It's using contactform.php
and sending to http://www.markandjentietheknot.com/...ubmission.html

AND

http://www.markandjentietheknot.com/rsvp.html
It's using formmail.php
and sending to http://www.markandjentietheknot.com/rsvpthankyou.html

On both of these, when clicking the "submit" button, it flashes some intermediate page and then loads the page that I requested it to load. How do I get it to stop flashing this page?

This is probably a very simple fix and I'm very much a newbie at PHP anything.

Thanks!!
jstarbuck is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-24-2011, 03:57 PM Re: Having trouble with php mail form...
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Do we get to see the PHP code?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-24-2011, 04:38 PM Re: Having trouble with php mail form...
Average Talker

Posts: 16
Name: Jen Starbuck
Trades: 0
from contactform.php

<?

/*
Configure this script by putting the following tags in your form:

Note: Your user must enter this value
<input type="text" name="Email"/>

<input type="hidden" name="mailto" value="jenstarbuck@gmail.com"/>
<input type="hidden" name="subject" value="Wedding Website Contact"/>
<input type="hidden" name="return_to" value="contactsubmission.html"/>

The following tags are optional. Use them if you want to send the person who
completed your form an email confirming that they sent it.

<input type="hidden" name="send_thankyou" value="true"/>
<input type="hidden" name="thankyou_message" value="WHATEVER MESSAGE YOU WANT TO SEND TO YOUR CUSTOMER"/>
<input type="hidden" name="thankyou_subject" value="WHATEVER SUBJECT YOU WANT THE MESSAGE TO HAVE"/>
<input type="hidden" name="thankyou_from" value="THE EMAIL ADDRESS YOU WANT TO SEND THE MESSAGE AS"/>

Make sure your form action is "formmail.php", and don't forget to add a submit button!

<form name="theForm" method="post" action="contactform.php">

Enjoy!
Steve Szettella & the 4word systems team.

*/


$keys = array_keys($_REQUEST);
for ($i=0; $i<sizeof($keys); $i++){
$msg = $msg . $keys[$i] .' : '. $_REQUEST[$keys[$i]] ."\n";
}

$to = $_REQUEST['mailto'];
$subject = $_REQUEST['subject'];
mail($to, $subject, $msg, 'From: '.$from);
$thankyouEmail = $_REQUEST['send_thankyou'];
if ($thankyouEmail == 'Y' || $thankyouEmail == 'true' || $thankyouEmail == "TRUE" || $thankyouEmail=="True") {
$thankyou_subject = $_REQUEST['thankyou_subject'];
$thankyou_message = $_REQUEST['thankyou_message'];
$thankyou_from = $_REQUEST['thankyou_from'];
mail($from, $thankyou_subject, $thankyou_message, "From: ". $thankyou_from);
}
$returnTo = $_REQUEST['return_to'];
echo $returnTo;
?>

This seems like a mess to me.
jstarbuck is offline
Reply With Quote
View Public Profile
 
Old 03-02-2011, 08:43 PM Re: Having trouble with php mail form...
Average Talker

Posts: 25
Name: Reuven Gloriss
Location: NYC
Trades: 0
Hi it looks fine to me.
I tried submitting the forms and it goes to the thank you page directly.
Whats the problem?
__________________
A Computer is like your body, protect it, use it smartly, add new features - and it will perform better.

Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
ruven is offline
Reply With Quote
View Public Profile Visit ruven's homepage!
 
Reply     « Reply to Having trouble with php mail form...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





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



Page generated in 0.66041 seconds with 12 queries