![]() |
|
| |||||||
| Notices |
| BlueVoda - General Issues All BlueVoda support issues that are not covered in the below forums. |
![]() |
| | LinkBack | Thread Tools |
|
#1
| ||||
| ||||
|
I've been working diligently on the completion of my "tell a friend" button and could not have done it without the help of Simon (aka Maddog). Thank you Simon. An error appears when I hit the submit button when I test the form on my computer, but for Simon, it works fine. I would like someone on this forum to test it as well. Please go to www.lifeatfifty.com and click on the "tell a friend" button on the left side of the index page and complete the form (send it to yourself). BTW, the operation of the form works fine... i.e. the thank you emails are sent. Just getting this error when I hit submit: Warning: Cannot modify header information - headers already sent by (output started at /home2/blahbla/public_html/lifeatfifty/friend.php:1) in /home2/blahbla/public_html/lifeatfifty/friend.php on line 115 Any ideas on how to fix? |
|
#2
| ||||
| ||||
| Quote:
I got the error message as well, Patti. |
|
#4
| |||
| |||
| Quote:
|
|
#5
| ||||
| ||||
| This is the sendsite.php file and the friend.php file follows below: <HTML> <HEAD> <TITLE>Send Site to a Friend</TITLE> <META NAME="Generator" CONTENT="Created by BlueVoda"> <META http-equiv="Page-Enter" content="blendTrans(Duration=1)"> </HEAD> <BODY bgcolor="#D5D5A8" text="#000000" alink="#0000FF"> <DIV style="position:absolute; left:153px; top:187px; width:200px; height:19px; z-index:14" align="left" valign="top"> <FONT style="FONT-SIZE: 10pt" face="Arial" color="#000000"><B>Your friends' email addresses:</B></FONT> </DIV> <IMG src="bv01115.gif" align="top" border="0" width="544" height="449" style="position:absolute;left:148px;top:32px;width :544px;height:449px;z-index:15"> <DIV style="position:absolute; left:345px; top:455px; width:124px; height:19px; z-index:16" align="left" valign="top"> <FONT style="FONT-SIZE: 7pt" face="Arial" color="#000000">Life at Fifty... and Beyond!</FONT> </DIV> <DIV style="position:absolute; left:269px; top:41px; width:305px; height:29px; z-index:17" align="left" valign="top"> <FONT style="FONT-SIZE: 18pt" face="Arial" color="#000000"><B>Send this Site to a Friend</B></FONT> </DIV> <DIV style="position:absolute; left:170px; top:73px; width:486px; height:381px; z-index:18" align="left" valign="top"> <FORM name=friend method=GET action="friend.php"> <INPUT type="submit" name="Submit" value="Send" style="position:absolute;left:296px;top:298px;z-index:0"> <DIV style="position:absolute; left:5px; top:329px; width:476px; height:47px; z-index:1" align="left" valign="top"> <FONT style="FONT-SIZE: 8pt" face="Arial" color="#000000">The names and email addresses provided by you will be used solely for sending emails. We assure you, that we will not save or use the email addresses for any other purposes, nor will we give it to third parties.</FONT> </DIV> <DIV style="position:absolute; left:189px; top:101px; width:12px; height:83px; z-index:2" align="left" valign="top"> <FONT style="FONT-SIZE: 10pt" face="Arial" color="#000000"><B>1</B><BR><BR><B>2</B><BR><BR><B>3</B></FONT> </DIV> <INPUT type="text" style="position:absolute;left:208px;top:163px;widt h:245px;z-index:3" size="35" name="femail3" value=""> <INPUT type="text" style="position:absolute;left:208px;top:132px;widt h:245px;z-index:4" size="35" name="femail2" value=""> <INPUT type="text" style="position:absolute;left:209px;top:35px;width :245px;z-index:5" size="35" name="lastname" value=""> <DIV style="position:absolute; left:42px; top:33px; width:110px; height:19px; z-index:6" align="left" valign="top"> <FONT style="FONT-SIZE: 10pt" face="Arial" color="#000000"><B>Your Last Name</B></FONT> </DIV> <INPUT type="text" style="position:absolute;left:208px;top:99px;width :245px;z-index:7" size="35" name="femail1" value=""> <INPUT type="text" style="position:absolute;left:208px;top:67px;width :245px;z-index:8" size="35" name="youremail" value=""> <DIV style="position:absolute; left:13px; top:224px; width:170px; height:19px; z-index:9" align="left" valign="top"> <FONT style="FONT-SIZE: 10pt" face="Arial" color="#000000"><B>Message to your Friend(s):</B></FONT> </DIV> <TEXTAREA name="message" style="position:absolute;left:208px;top:190px;widt h:246px;height:94px;z-index:10" rows=5 cols=28></TEXTAREA> <DIV style="position:absolute; left:44px; top:67px; width:79px; height:19px; z-index:11" align="left" valign="top"> <FONT style="FONT-SIZE: 10pt" face="Arial" color="#000000"><B>Your Email</B></FONT> </DIV> <DIV style="position:absolute; left:42px; top:6px; width:107px; height:19px; z-index:12" align="left" valign="top"> <FONT style="FONT-SIZE: 10pt" face="Arial" color="#000000"><B>Your First Name</B></FONT> </DIV> <INPUT type="text" style="position:absolute;left:209px;top:5px;width: 245px;z-index:13" size="35" name="firstname" value=""> </FORM> </DIV> </BODY> </HTML> and this is my friend.php file <?PHP error_reporting(7); #---------- # Validate: Email function check_email($email, $optional) { if ( (strlen($email) == 0) && ($optional === true) ) { return true; } elseif ( eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $email) ) { return true; } else { return false; } } # RegisterGlobals OFF $FTGfirstname = $_POST['firstname']; $FTGmessage = $_POST['message']; $FTGyouremail = $_POST['youremail']; $FTGfemail1 = $_POST['femail1']; $FTGlastname = $_POST['lastname']; $FTGfemail2 = $_POST['femail2']; $FTGfemail3 = $_POST['femail3']; $FTGSubmit = $_POST['Submit']; # Fields Validations $validationFailed = false; if ( (! check_email($FTGyouremail, true))) { $validationFailed = true; } # Redirect user to the error page if ($validationFailed == true) { header("Location: http://www.lifeatfifty.com/errorfriendsent.html"); exit; } # Email to Form Owner $emailTo = $FTGfemail1; $FTGfemail3; $FTGfemail3; $emailSubject = "Recommend site www.lifeatfifty.com"; $emailBody = "" . date('d/m/Y') . "\n" . "\n" . "Hello, $FTGfirstname $FTGlastname has just been to http://www.lifeatfifty.com and recommends that you visit the site. \n" . " \n" . "message: $FTGmessage\n" . "\n" . "www.lifeatfifty.com has been created for those 50 years of age and beyond, offering inspiring ideas. Don't forget to visit the forum. I hope you enjoy the site.\n" . "\n" . "Best Regards,\n" . "\n" . "\n" . "Life at Fifty\n" . "\n" . "\n" . "http://www.lifeatfifty.com\n" . "\n" . "Copyright © 2005. All rights reserved\n" . "\n" . "This email was sent through the www.lifeatfifty.com website by someone who knows you and/or your email address. The sender may have added an individual message to this email over which www.lifeatfifty.com has no control. www.lifeatfifty.com is not the author of any such message and does not necessarily share the opinions expressed.\n" . "\n" . ""; $emailHeader = "From: $FTGyouremail\n" . "Reply-To: $FTGyouremail\n" . "MIME-Version: 1.0\n" . "Content-type: text/plain; charset=\"ISO-8859-1\"\n" . "Content-transfer-encoding: quoted-printable\n"; mail($emailTo, $emailSubject, $emailBody, $emailHeader); # Confirmation Email to User $confEmailTo = $FTGyouremail; $confEmailSubject = "Recommend site www.lifeatfifty.com"; $confEmailBody = "" . date('m/d/y') . "\n" . "\n" . "Thank you\n" . "\n" . "Hello, $FTGfirstname $FTGlastname, and thank you for recommending www.lifeatfifty.com to your friend(s). \n" . "\n" . "lifeatfifty.com has been created for those 50 years of age and beyond offering inspiring ideas. I hope you enjoy the site. Please visit often.\n" . "\n" . "Best Regards,\n" . "\n" . "Life at Fifty\n" . "\n" . "http://www.lifeatfifty.com\n" . "\n" . "Copyright © 2005. All rights reserved\n" . ""; $confEmailHeader = "From: contact@lifeatfifty.com\n" . "Reply-To: contact@lifeatfifty.com\n" . "MIME-Version: 1.0\n" . "Content-type: text/plain; charset=\"ISO-8859-1\"\n" . "Content-transfer-encoding: quoted-printable\n"; mail($confEmailTo, $confEmailSubject, $confEmailBody, $confEmailHeader); # Redirect user to success page header("Location: http://www.lifeatfifty.com/emailrequestsent.html"); exit; # End of PHP script ?> Any help would be greatly appreciated. Quote:
|
|
#6
| ||||
| ||||
|
Hi all this is whats is meant to happen http://www.easttilburyinfantschool.c...st2/patti.html I would dearly like to know the answer!
__________________ www.bluevodaexchangelink.com BluevodaExchangeLink Help Center Bluevodaexchangelink Forum The only place for bluevoda site to be linked with! |
|
#7
| ||||
| ||||
| Quote:
__________________ curley |
|
#8
| ||||
| ||||
|
Hi I just tested this for you and it worked. While filling the form it did'nt let me tab correctly thru it. When checking my email I had an email from the tell a friend button and also one from you??? Looks like this is an old issue which you've probably already solved...but thought I'd give it a whirl anyhow. Incidentially...40's not to bad so 50 should be better... Angel |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Order Form and Paypal Help Please | Gramma Anna | General Support Issues | 3 | 05-07-2006 04:27 AM |
| E-mail form problems | prosper | Email Problems (POP, SMTP & Webmail) | 3 | 10-07-2005 10:49 PM |
| Trouble With Form | Rilstone Productions | General Support Issues | 2 | 09-28-2005 11:30 PM |
| HTML code for Contact Form | Patti Johnson | BlueVoda - General Issues | 2 | 09-22-2005 06:56 PM |
| Form mail....yikes... | maximillian | The Voda Lounge (Chit Chat) | 4 | 09-21-2005 07:32 PM |