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. whats the line before ?
  3. 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);
  4. 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.'">'; ?>
  5. If your going to act like that , i don't think anyone will help you.
  6. how can we tell if we cant see the code.
  7. add error_reporting(E_ALL); to the top of the page
  8. Probs google maps, if they have a feature like that
  9. 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.
  10. Unless you use PHPmailer
  11. under the get bit add echo $_GET['p']; echo "<br>".$p;
  12. are you sure the $_GET[]; isnt empty? Try echoin the vars , and see if they are what u expect
  13. The from email must be an email registered on the hosting
  14. Where is that function ?
  15. 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>
  16. so it isnt making it bold?
  17. can you post your registration code.
  18. echo it , dont just place it there
  19. That will make it bold not highlight it , i dunno if there is anything wrong with the code.
  20. another way to do the link <a href="javascript:history.go(-1)">Back</a>
  21. 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.