Results 1 to 8 of 8

Thread: Can someone please test my form?
      
   

  1. #1
    Patti Johnson's Avatar
    Patti Johnson is offline Sergeant Major
    Join Date
    Jul 2005
    Posts
    95

    Question Can someone please test my form?

    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. #2
    racefan20's Avatar
    racefan20 is offline Major General
    Join Date
    Jul 2005
    Location
    Concord, NC
    Posts
    2,339

    Default

    Quote Originally Posted by Patti Johnson
    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?

    I got the error message as well, Patti.

  3. #3
    christobal's Avatar
    christobal is offline First Sergeant
    Join Date
    Jun 2005
    Location
    Israel
    Posts
    73

    Default need source of php file

    Quote Originally Posted by racefan20
    I got the error message as well, Patti.
    need to see the php file to be able to help

  4. #4
    CGPhotoMom is offline Master Learner
    Join Date
    May 2005
    Location
    NWArkansas
    Posts
    37

    Default

    Quote Originally Posted by Patti Johnson
    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?
    Thats what I got. Sorry.

  5. #5
    Patti Johnson's Avatar
    Patti Johnson is offline Sergeant Major
    Join Date
    Jul 2005
    Posts
    95

    Default Tell a Friend Form Test

    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.&nbsp; 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 Originally Posted by christobal
    need to see the php file to be able to help

  6. #6
    Maddog's Avatar
    Maddog is offline Lieutenant Colonel
    Join Date
    May 2005
    Location
    UK
    Posts
    514

    Default

    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. #7
    Glenn's Avatar
    Glenn is offline Members
    Join Date
    May 2005
    Location
    Sydney
    Posts
    34

    Default

    Quote Originally Posted by Patti Johnson
    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?
    Sorry Patti got the same thing.
    Glenn

  8. #8
    reelezcharters's Avatar
    reelezcharters is offline Sergeant
    Join Date
    Oct 2005
    Location
    Bay De Noc area U.P. Michigan
    Posts
    37

    Arrow worked for me

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Order Form and Paypal Help Please
    By Gramma Anna in forum General Support Issues
    Replies: 3
    Last Post: 05-07-2006, 03:27 AM
  2. E-mail form problems
    By prosper in forum Email Problems (POP, SMTP & Webmail)
    Replies: 3
    Last Post: 10-07-2005, 09:49 PM
  3. Trouble With Form
    By Rilstone Productions in forum General Support Issues
    Replies: 2
    Last Post: 09-28-2005, 10:30 PM
  4. HTML code for Contact Form
    By Patti Johnson in forum BlueVoda - General Issues
    Replies: 2
    Last Post: 09-22-2005, 05:56 PM
  5. Form mail....yikes...
    By maximillian in forum The Voda Lounge (Chit Chat)
    Replies: 4
    Last Post: 09-21-2005, 06:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49