Jump to content

benzetti82

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by benzetti82

  1. Ok duh I screwed something up on my end... The only other issue I am having is that I can't get the FROM to correctly display the submitters email...
  2. Oh sorry the form works. Its just the CSS styles aren't displaying as they should... Is this a limitation of CSS with email programs such as outlook? Also how would I code it so that the FROM in my email shows the actual persons email address?
  3. So I was trying to change up my script to dress it up a bit but it's not working... I am still kind of new to PHP... Any ideas? <?php ini_set("SMTP","relay-hosting.securesever.net"); ini_set("sendmail_from","info@mydomain.com"); $headers = "From: " . strip_tags($_POST['req-email']) . "\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $completemessage = '<html><body>'; $completemessage .= '<table rules="all" style="border-color: #666;" cellpadding="10">'; $completemessage .= "<tr style='background: #eee;'><td><strong>First Name:</strong> </td><td>" . strip_tags($_REQUEST['firstname']) . "</td></tr>"; $completemessage .= "<tr><td><strong>Last Name:</strong> </td><td>" . strip_tags($_REQUEST['lastname']) . "</td></tr>"; $completemessage .= "<tr style='background: #eee;'><td><strong>Phone:</strong> </td><td>" . strip_tags($_REQUEST['phone']) . "</td></tr>"; $completemessage .= "<tr><td><strong>Email:</strong> </td><td>" . strip_tags($_REQUEST['email']) . "</td></tr>"; $completemessage .= "<tr style='background: #eee;'><td><strong>Message:</strong> </td><td>" . strip_tags($_REQUEST['message']) . "</td></tr>"; $completemessage .= "</table>"; $completemessage .= "</body></html>"; mail( "info@mydomain.com", "MYDOMAIN.com Contact/Feedback", $completemessage, $headers); header("Location: thankyou.php"); ?>
  4. I've never encountered this issue before so any help is much appreciated. I am using PHP includes. I am receiving the following error on my website. Warning: include() [function.include]: Unable to access ../includes/headGlobal.php in /home/apttrain/public_html/index.php on line 4 Warning: include(../includes/headGlobal.php) [function.include]: failed to open stream: No such file or directory in /home/apttrain/public_html/index.php on line 4 Warning: include() [function.include]: Failed opening '../includes/headGlobal.php' for inclusion (include_path='/home/apttrain/public_html/includes/') in /home/apttrain/public_html/index.php on line 4 Warning: include() [function.include]: Unable to access ../includes/headerGlobal.php in /home/apttrain/public_html/index.php on line 12 Warning: include(../includes/headerGlobal.php) [function.include]: failed to open stream: No such file or directory in /home/apttrain/public_html/index.php on line 12 My code looks like the following. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php include("/includes/headGlobal.php"); ?> </head> <body> <!--Start Top Sec--> <div id="top_section"> <div id="top_container"> <!--Start Header--> <?php include("/includes/headerGlobal.php"); ?> <!--Stop Header--> Now my PHP.ini file looks like this. allow_url_include = 1 include_path = "/home/apttrain/public_html/includes/" Thanks in advance for your help.
×
×
  • 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.