Jump to content

DeanWhitehouse

Members
  • Posts

    2,527
  • Joined

  • Last visited

Everything posted by DeanWhitehouse

  1. k, a way to help is to put error_reporting(E_ALL); at the top of the page
  2. hang on this line is wrong ,soz mail($email_field, $auto_respond_subject, $auto_respond_body,$header); should be mail($email_field, $auto_respond_subject, $auto_respond_body,$headers);
  3. Thats the most you can do without PHP mailer <?php //--------------------------Set these paramaters-------------------------- // Subject of email sent to you. $subject = 'TEAM:BARIATRICS Informational Packet Request'; // Your email address. This is where the form information will be sent. $emailadd = 'aubreyburkhart@comcast.net'; // Where to redirect after form is processed. $url = 'http://www.butneveragain.org/info/thankyou.html'; // Makes all fields required. If set to '1' no field can not be empty. If set to '0' any or all fields can be empty. $req = '0'; // Email address put into Email Field $email_field = $_POST["Email"]; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= 'From: TEAM:BARIATRICS <ghsfiles@box394.bluehost.comcom>'; // --------------------------Do not edit below this line-------------------------- $auto_respond_subject = 'TEAM:BARIATRICS Informational Packet Request'; $auto_respond_body = "Thank you for requesting your free TEAM:BARIATRICS Informational Packet. \n You should recieve your packet within 5-10 business days.\n If you would like additional information, call 574.537.TEAM or visit us online at www.butneveragain.org."; mail($email_field, $auto_respond_subject, $auto_respond_body,$header); $text = "Results from form:\n\n"; $space = ' '; $line = ' '; foreach ($_POST as $key => $value) { if ($req == '1') { if ($value == '') { echo "$key is empty"; die; } } $j = strlen($key); if ($j >= 20) { echo "Name of form element $key cannot be longer than 20 characters"; die; } $j = 20 - $j; for ($i = 1; $i <= $j; $i++) { $space .= ' '; } $value = str_replace('\n', "$line", $value); $conc = "{$key}:$space{$value}$line"; $text .= $conc; $space = ' '; } mail($emailadd, $subject, $text, "From: Online Request"); echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">'; ?>
  4. If your going to act like that , i don't think anyone will help you.
  5. how can we tell if we cant see the code.
  6. add error_reporting(E_ALL); to the top of the page
  7. when u send a email using the mail(); function , it is sent through the servers SMTP , and in effect must be sent from an email set up on the server, unless you use PHP mailer.
  8. are you sure the $_GET[]; isnt empty? Try echoin the vars , and see if they are what u expect
  9. The from email must be an email registered on the hosting
  10. not that <a href="<?php echo 'show_book.php?product_id={$row['product_id']}'; ?>"onmouseover="ajax_showTooltip('demo-pages/js-calendar.html',this);return false" onmouseout="ajax_hideTooltip()"<?php echo 'show_book.php?product_id={$row['product_id']}';?>><img src= "<?php echo './images/{$row['pix']}';>" border="0" width="100" height="80"></a>
  11. That will make it bold not highlight it , i dunno if there is anything wrong with the code.
  12. another way to do the link <a href="javascript:history.go(-1)">Back</a>
  13. does it show all the page numbers? are the page number links to different pages or are they all the same? add error_reporting(E_ALL); to the top of the page
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.