Jump to content

RMDesign

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

RMDesign's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for all your help, this has fixed the emailing problem. I have now discovered another problem which I though had been fixed earlier. I have to sleep now, but is it possible for me to bug you with this new problem another day?
  2. I replace //From $sendmail_from="$email" with $sendmail_from = 'From: '. { $email } ."\r\n"; and I got a HTTP Error 500.0 - Internal Server Error page
  3. I'm sorry, I am new to this, I hit the #insert code button and pasted all that code between the tags but it came out like that. What is the correct way to post code if the #insert code button is not correct?
  4. should I be replacing the $email=trim($_POST['email']); line with your new line? or should I be replacing something else?
  5. Ok, I changed the line to $sendmail_from and this is the error message I recieved: Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\HostingSpaces\wraptinprint.com.au\wraptinprint.com.au\wwwroot\quotes_copy.php on line 280 Unable to send e-mail. Is this telling me I need to have From somewhere else in the code for this to work?
  6. <!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"><!-- InstanceBegin template="/Templates/General.dwt" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Wrapt In Print - Request a Quote</title> <!-- InstanceEndEditable --> <link href="screen.css" rel="stylesheet" type="text/css" media="screen" /> <!-- InstanceBeginEditable name="head" --> <script type="text/javascript"> // <![CDATA[ function display(obj,id1,id2,id3,id4,id5,id6,id7) { txt = obj.options[obj.selectedIndex].value; document.getElementById(id1).style.display = 'none'; document.getElementById(id2).style.display = 'none'; document.getElementById(id3).style.display = 'none'; document.getElementById(id4).style.display = 'none'; document.getElementById(id5).style.display = 'none'; document.getElementById(id6).style.display = 'none'; document.getElementById(id7).style.display = 'none'; if ( txt.match(id1) ) { document.getElementById(id1).style.display = 'block'; } if ( txt.match(id2) ) { document.getElementById(id2).style.display = 'block'; } if ( txt.match(id3) ) { document.getElementById(id3).style.display = 'block'; } if ( txt.match(id4) ) { document.getElementById(id4).style.display = 'block'; } if ( txt.match(id5) ) { document.getElementById(id5).style.display = 'block'; } if ( txt.match(id6) ) { document.getElementById(id6).style.display = 'block'; } if ( txt.match(id7) ) { document.getElementById(id7).style.display = 'block'; } } // ]]> </script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-20868653-3']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <!-- InstanceEndEditable --> </head> <!-- InstanceBeginEditable name="body" --> <body> <!-- InstanceEndEditable --> <div id="wrapper"> <div id="header"> <div id="logo"><a href="index.html"><img src="images/logo2.jpg" width="198" height="134" border="0" alt="Wrapt in Print logo - Links back to Home page" /></a></div> <div id="nav"><!-- InstanceBeginEditable name="nav" --> <ul> <li><a href="index.html"><h2>Home</h2></a></li> <li><a href="gallery.html"><h2>Gallery</h2></a></li> <li><a class="current" href="quotes.php"><h2>Quotes</h2></a></li> <li><a href="contact.html"><h2>Contact Us</h2></a></li> </ul> <!-- InstanceEndEditable --></div> </div> <div id="content"><!-- InstanceBeginEditable name="Content" --> <div id="quote"> <p class="bold">For a fast and easy quote fill in the below form and one of our friendly consultants will contact you:</p> <form name="form" method="post" action="quotes_copy.php"> <h5>*Denotes required fields</h5> <?php ini_set('display_errors',1); error_reporting(E_ALL|E_STRICT); if(isset($_POST['submit'])) { //define our variables from form input $company=trim($_POST['company']); $contact=trim($_POST['contact']); $phone=trim($_POST['phone']); $fax=trim($_POST['fax']); $email=trim($_POST['email']); $description=trim($_POST['description']); $quantity1=trim($_POST['quantity1']); $quantity2=trim($_POST['quantity2']); $quantity3=trim($_POST['quantity3']); $quantity4=trim($_POST['quantity4']); $quantity5=trim($_POST['quantity5']); $quantity6=trim($_POST['quantity6']); $stock1=trim($_POST['stock1']); $stock2=trim($_POST['stock2']); $stock3=trim($_POST['stock3']); $stock4=trim($_POST['stock4']); $stock5=trim($_POST['stock5']); $size1=trim($_POST['size1']); $size2=trim($_POST['size2']); $size3=trim($_POST['size3']); $size4=trim($_POST['size4']); $sizeflat=trim($_POST['sizeflat']); $sizefolded=trim($_POST['sizefolded']); $coverstock1=trim($_POST['coverstock1']); $coverstock2=trim($_POST['coverstock2']); $sides1=trim($_POST['sides1']); $sides2=trim($_POST['sides2']); $sides3=trim($_POST['sides3']); $sides4=trim($_POST['sides4']); $sides5=trim($_POST['sides5']); $front1=trim($_POST['front1']); $front2=trim($_POST['front2']); $front3=trim($_POST['front3']); $front4=trim($_POST['front4']); $back1=trim($_POST['back1']); $back2=trim($_POST['back2']); $back3=trim($_POST['back3']); $back4=trim($_POST['back4']); $finishfront1=trim($_POST['finishfront1']); $finishfront2=trim($_POST['finishfront2']); $finishback1=trim($_POST['finishback1']); $finishback2=trim($_POST['finishback2']); $artwork1=trim($_POST['artwork1']); $artwork2=trim($_POST['artwork2']); $artwork3=trim($_POST['artwork3']); $artwork4=trim($_POST['artwork4']); $artwork5=trim($_POST['artwork5']); $artwork6=trim($_POST['artwork6']); $media1=trim($_POST['media1']); $media2=trim($_POST['media2']); $media3=trim($_POST['media3']); $media4=trim($_POST['media4']); $media5=trim($_POST['media5']); $media6=trim($_POST['media6']); $message=trim($_POST['message']); $error=""; //check for the required fields - contact name, phone, and email if($contact==""||$phone==""||$email=="") $error="Please fill in the required fields.<br />"; elseif(!filter_var($email, FILTER_SANITIZE_EMAIL)||!filter_var($email, FILTER_VALIDATE_EMAIL)) $error="Please enter a valid e-mail.<br />"; if($error!="") echo "<span style=\"font-weight:bold;\">!</span> The following errors occured:<br />$error"; else { $output=""; $break="\r\n"; if($company!="") $output=$output . "Company: " . $company . $break; $output=$output . "Contact Name: " . $contact . $break; $output=$output . "Phone: " . $phone . $break; if($fax!="") $output=$output . "Fax: " . $fax . $break; $output=$output . "E-mail: " . $email . $break; if($description!="") $output=$output . "Job Description: " . $description . $break; if($quantity1!="") $output=$output . "Print Quantity: " . $quantity1 . $break; if($quantity2!="") $output=$output . "Print Quantity: " . $quantity2 . $break; if($quantity3!="") $output=$output . "Print Quantity: " . $quantity3 . $break; if($quantity4!="") $output=$output . "Print Quantity: " . $quantity4 . $break; if($quantity5!="") $output=$output . "Print Quantity: " . $quantity5 . $break; if($quantity6!="") $output=$output . "Print Quantity: " . $quantity6 . $break; if($stock1!="") $output=$output . "Stock Weight: " . $stock1 . $break; if($stock2!="") $output=$output . "Stock Weight: " . $stock2 . $break; if($stock3!="") $output=$output . "Stock Weight: " . $stock3 . $break; if($stock4!="") $output=$output . "Stock Weight: " . $stock4 . $break; if($stock5!="") $output=$output . "Stock Weight: " . $stock5 . $break; if($size1!="") $output=$output . "Size: " . $size1 . $break; if($size2!="") $output=$output . "Size: " . $size2 . $break; if($size3!="") $output=$output . "Size: " . $size3 . $break; if($size4!="") $output=$output . "Size: " . $size4 . $break; if($sizeflat!="") $output=$output . "Size Flat: " . $sizeflat . $break; if($sizefolded!="") $output=$output . "Size Folded: " . $sizefolded . $break; if($coverstock1!="") $output=$output . "Cover Stock: " . $coverstock1 . $break; if($coverstock2!="") $output=$output . "Cover Stock: " . $coverstock2 . $break; if($sides1!="") $output=$output . "Sides Printed: " . $sides1 . $break; if($sides2!="") $output=$output . "Sides Printed: " . $sides2 . $break; if($sides3!="") $output=$output . "Sides Printed: " . $sides3 . $break; if($sides4!="") $output=$output . "Sides Printed: " . $sides4 . $break; if($sides5!="") $output=$output . "Sides Printed: " . $sides5 . $break; if($front1!="") $output=$output . "Print Colour - Front: " . $front1 . $break; if($front2!="") $output=$output . "Print Colour - Front: " . $front2 . $break; if($front3!="") $output=$output . "Print Colour - Front: " . $front3 . $break; if($front4!="") $output=$output . "Print Colour - Front: " . $front4 . $break; if($back1!="") $output=$output . "Print Colour - Back: " . $back1 . $break; if($back2!="") $output=$output . "Print Colour - Back: " . $back2 . $break; if($back3!="") $output=$output . "Print Colour - Back: " . $back3 . $break; if($back4!="") $output=$output . "Print Colour - Back: " . $back4 . $break; if($finishfront1!="") $output=$output . "Finish Front: " . $finishfront1 . $break; if($finishfront2!="") $output=$output . "Finish Front: " . $finishfront2 . $break; if($finishback1!="") $output=$output . "Finish Back: " . $finishback1 . $break; if($finishback2!="") $output=$output . "Finish Back: " . $finishback2 . $break; if($artwork1!="") $output=$output . "Artwork Supplied: " . $artwork1 . $break; if($artwork2!="") $output=$output . "Artwork Supplied: " . $artwork2 . $break; if($artwork3!="") $output=$output . "Artwork Supplied: " . $artwork3 . $break; if($artwork4!="") $output=$output . "Artwork Supplied: " . $artwork4 . $break; if($artwork5!="") $output=$output . "Artwork Supplied: " . $artwork5 . $break; if($artwork6!="") $output=$output . "Artwork Supplied: " . $artwork6 . $break; if($media1!="") $output=$output . "Media Format: " . $media1 . $break; if($media2!="") $output=$output . "Media Format: " . $media2 . $break; if($media3!="") $output=$output . "Media Format: " . $media3 . $break; if($media4!="") $output=$output . "Media Format: " . $media4 . $break; if($media5!="") $output=$output . "Media Format: " . $media5 . $break; if($media6!="") $output=$output . "Media Format: " . $media6 . $break; if($message!="--Please Select--") $output=$output . "Message: " . $message . $break; //E-mail address to send input to, change this $to="studio@rmdesignstudio.com.au"; //Title of E-mail $subject="Website Quote Request Form - www.wraptinprint.com.au"; //From $sendmail_from="$email"; $success="</div></div><div id=\"footer\"><h5>© "; $success=$success . "<a href=\"mailto:admin&#64wraptinprint.com.au\">Wrapt In Print</a> 2010-2011. "; $success=$success . "Design By <a href=\"mailto:simo13972@live.com\">Simeon Alley</a> "; $success=$success . "Developed By <a href=\"http://www.rmdesignstudio.com.au/\" target=\"_blank\">RMDesign</a></h5>"; $success=$success . "</div></div></body></html>"; if(mail($to, $subject, $output, $from)) die("The e-mail was sent successfully.<br />$success"); else echo "Unable to send e-mail."; } } ?> <table cellspacing="6px" > <tr> <td><label for="company">Company</label><input type="text" name="company" value="<?php if(isset($_POST['company'])) echo $_POST['company']; ?>"></td> <td><label for="contact">Contact Name*</label><input type="text" name="contact" value="<?php if(isset($_POST['contact'])) echo $_POST['contact']; ?>"></td> <td><label for="phone">Phone*</label><input type="text" name="phone" value="<?php if(isset($_POST['phone'])) echo $_POST['phone']; ?>"></td> </tr> <tr> <td><label for="fax">Fax</label><input type="text" name="fax" value="<?php if(isset($_POST['fax'])) echo $_POST['fax']; ?>"></td> <td><label for="email">Email*</label><input type="text" name="email" value="<?php if(isset($_POST['email'])) echo $_POST['email']; ?>"></td> <td class="field"> <label for="description">Job Description</label> <select name="description" onchange="display(this,'Business Card','Letterhead','With Compliment Slips','Flyer / Voucher','Booklet / Newsletter','Carbonless Books','Other');" > <option>--Please Select--</option> <option value="Business Card">Business Cards</option> <option value="Letterhead">Letterheads</option> <option value="With Compliment Slips">With Compliment Slips</option> <option value="Flyer / Voucher">Flyers / Vouchers</option> <option value="Booklet / Newsletter">Booklets / Newsletters</option> <option value="Carbonless Books">Carbonless Books</option> <option value="Other">Other...</option> </select> </td> </tr> </table> <table cellspacing="7px"> <tbody id="Business Card" style="display: none;"> <tr> <td> <label for="quantity1">Print Quantity</label> <select name="quantity1"> <option value="">--Please Select--</option> <option value="500">500</option> <option value="1000">1000</option> <option value="2500">2500</option> <option value="Other">Other</option> </select> </td> <td> <label for="stock1">Stock Weight</label> <select name="stock1"> <option value="">--Please Select--</option> <option value="Matt 290gsm">Matt 290gsm</option> <option value="Matt 310gsm">Matt 310gsm</option> <option value="Other">Other</option> </select> </td> <td><label for="size1">Size</label><input type="text" name="size1" value="<?php if(isset($_POST['size1'])) echo $_POST['size1']; ?>"></td> </tr> <tr> <td> <label for="sides1">Sides Printed</label> <select name="sides1"> <option value="">--Please Select--</option> <option value="One Sided">One Sided</option> <option value="Two Sided">Two Sided</option> </select> </td> <td> <label for="front1">Print Colour - Front</label> <select name="front1"> <option value="">--Please Select--</option> <option value="1 Colour">1 Colour</option> <option value="2 Colour">2 Colour</option> <option value="Full Colour">Full Colour</option> </select> </td> <td> <label for="back1">Print Colour - Back</label> <select name="back1"> <option value="">--Please Select--</option> <option value="1 Colour">1 Colour</option> <option value="2 Colour">2 Colour</option> <option value="Full Colour">Full Colour</option> </select> </td> </tr> <tr> <td><label for="finishfront1">Finish - Front</label><input type="text" name="finishfront1" value="<?php if(isset($_POST['finishfront1'])) echo $_POST['finishfront1']; ?>"></td> <td><label for="finishback1">Finish - Back</label><input type="text" name="finishback1" value="<?php if(isset($_POST['finishback1'])) echo $_POST['finishback1']; ?>"></td> </tr> <tr> <td> <label for="artwork1">Artwork Supplied</label> <select name="artwork1"> <option value="">--Please Select--</option> <option value="Yes">Yes</option> <option value="No">No</option> </select> </td> <td><label for="media1">Media Format</label><input type="text" name="media1" value="<?php if(isset($_POST['media1'])) echo $_POST['media1']; ?>"></td> </tr> </tbody> <tbody id="Letterhead" style="display: none;"> <tr> <td> <label for="quantity2">Print Quantity</label> <select name="quantity2"> <option value="">--Please Select--</option> <option value="500">500</option> <option value="1000">1000</option> <option value="2500">2500</option> <option value="Other">Other</option> </select> </td> <td> <label for="stock2">Stock Weight</label> <select name="stock2"> <option value="">--Please Select--</option> <option value="White Bond 80gsm">White Bond 80gsm</option> <option value="White Bond 90gsm">White Bond 90gsm</option> <option value="White Bond 100gsm">White Bond 100gsm</option> <option value="White Bond 110gsm">White Bond 110gsm</option> <option value="Other">Other</option> </select> </td> <td><label for="size2">Size</label><input type="text" name="size2" value="<?php if(isset($_POST['size2'])) echo $_POST['size2']; ?>"></td> </tr> <tr> <td> <label for="sides2">Sides Printed</label> <select name="sides2"> <option value="">--Please Select--</option> <option value="One Sided">One Sided</option> <option value="Two Sided">Two Sided</option> </select> </td> <td> <label for="front2">Print Colour - Front</label> <select name="front2"> <option value="">--Please Select--</option> <option value="1 Colour">1 Colour</option> <option value="2 Colour">2 Colour</option> <option value="Full Colour">Full Colour</option> </select> </td> <td> <label for="back2">Print Colour - Back</label> <select name="back2"> <option value="">--Please Select--</option> <option value="1 Colour">1 Colour</option> <option value="2 Colour">2 Colour</option> <option value="Full Colour">Full Colour</option> </select> </td> </tr> <tr> <td> <label for="artwork2">Artwork Supplied?</label> <select name="artwork2"> <option value="">--Please Select--</option> <option value="Yes">Yes</option> <option value="No">No</option> </select> </td> <td><label for="media2">Media Format</label><input type="text" name="media2" value="<?php if(isset($_POST['media2'])) echo $_POST['media2']; ?>"></td> </tr> </tbody> <tbody id="With Compliment Slips" style="display: none;"> <tr> <td> <label for="quantity3">Print Quantity</label> <select name="quantity3"> <option value="">--Please Select--</option> <option value="500">500</option> <option value="1000">1000</option> <option value="2500">2500</option> <option value="Other">Other</option> </select> </td> <td> <label for="stock3">Stock Weight</label> <select name="stock3"> <option value="">--Please Select--</option> <option value="White Bond 80gsm">White Bond 80gsm</option> <option value="White Bond 90gsm">White Bond 90gsm</option> <option value="White Bond 100gsm">White Bond 100gsm</option> <option value="White Bond 110gsm">White Bond 110gsm</option> <option value="Other">Other</option> </select> </td> <td><label for="size3">Size</label><input type="text" name="size3" value="<?php if(isset($_POST['size3'])) echo $_POST['size3']; ?>"></td> </tr> <tr> <td> <label for="sides3">Sides Printed</label> <select name="sides3"> <option value="">--Please Select--</option> <option value="One Sided">One Sided</option> <option value="Two Sided">Two Sided</option> </select> </td> <td> <label for="front3">Print Colour - Front</label> <select name="front3"> <option value="">--Please Select--</option> <option value="1 Colour">1 Colour</option> <option value="2 Colour">2 Colour</option> <option value="Full Colour">Full Colour</option> </select> </td> <td> <label for="back3">Print Colour - Back</label> <select name="back3"> <option value="">--Please Select--</option> <option value="1 Colour">1 Colour</option> <option value="2 Colour">2 Colour</option> <option value="Full Colour">Full Colour</option> </select> </td> </tr> <tr> <td> <label for="artwork3">Artwork Supplied?</label> <select name="artwork3"> <option value="">--Please Select--</option> <option value="Yes">Yes</option> <option value="No">No</option> </select> </td> <td><label for="media3">Media Format</label><input type="text" name="media3" value="<?php if(isset($_POST['media3'])) echo $_POST['media3']; ?>"></td> </tr> </tbody> <tbody id="Flyer / Voucher" style="display: none;"> <tr> <td> <label for="quantity4">Print Quantity</label> <select name="quantity4"> <option value="">--Please Select--</option> <option value="500">500</option> <option value="1000">1000</option> <option value="2500">2500</option> <option value="Other">Other</option> </select> </td> <td> <label for="stock4">Stock Weight</label> <select name="stock4"> <option value="">--Please Select--</option> <option value="Matt 80gsm">Matt 80gsm</option> <option value="Matt 100gsm">Matt 100gsm</option> <option value="Matt 110gsm">Matt 110gsm</option> <option value="Matt 130gsm">Matt 130gsm</option> <option value="Matt 150gsm">Matt 150gsm</option> <option value="Matt 170gsm">Matt 170gsm</option> <option value="Matt 250gsm">Matt 250gsm</option> <option value="Gloss 80gsm">Gloss 80gsm</option> <option value="Gloss 100gsm">Gloss 100gsm</option> <option value="Gloss 110gsm">Gloss 110gsm</option> <option value="Gloss 130gsm">Gloss 130gsm</option> <option value="Gloss 150gsm">Gloss 150gsm</option> <option value="Gloss 170gsm">Gloss 170gsm</option> <option value="Gloss 250gsm">Gloss 250gsm</option> <option value="Other">Other</option> </select> </td> <td><label for="size4">Size</label><input type="text" name="size4" value="<?php if(isset($_POST['size4'])) echo $_POST['size4']; ?>"></td> </tr> <tr> <td> <label for="sides4">Sides Printed</label> <select name="sides4"> <option value="">--Please Select--</option> <option value="One Sided">One Sided</option> <option value="Two Sided">Two Sided</option> </select> </td> <td> <label for="front4">Print Colour - Front</label> <select name="front4"> <option value="">--Please Select--</option> <option value="1 Colour">1 Colour</option> <option value="2 Colour">2 Colour</option> <option value="Full Colour">Full Colour</option> </select> </td> <td> <label for="back4">Print Colour - Back</label> <select name="back4"> <option value="">--Please Select--</option> <option value="1 Colour">1 Colour</option> <option value="2 Colour">2 Colour</option> <option value="Full Colour">Full Colour</option> </select> </td> </tr> <tr> <td><label for="finishfront2">Finish - Front</label><input type="text" name="finishfront2" value="<?php if(isset($_POST['finishfront2'])) echo $_POST['finishfront2']; ?>"></td> <td><label for="finishback2">Finish - Back</label><input type="text" name="finishback2" value="<?php if(isset($_POST['finishback2'])) echo $_POST['finishback2']; ?>"></td> </tr> <tr> <td> <label for="artwork4">Artwork Supplied?</label> <select name="artwork4"> <option value="">--Please Select--</option> <option value="Yes">Yes</option> <option value="No">No</option> </select> </td> <td><label for="media4">Media Format</label><input type="text" name="media4" value="<?php if(isset($_POST['media4'])) echo $_POST['media4']; ?>"></td> </tr> </tbody> <tbody id="Booklet / Newsletter" style="display: none;"> <tr> <td> <label for="quantity5">Print Quantity</label> <select name="quantity5"> <option value="">--Please Select--</option> <option value="500">500</option> <option value="1000">1000</option> <option value="2500">2500</option> <option value="Other">Other</option> </select> </td> <td> <label for="coverstock1">Cover Weight</label> <select name="coverstock1"> <option value="">--Please Select--</option> <option value="150gsm">150gsm</option> <option value="250gsm">250gsm</option> <option value="Other">Other</option> </select> </td> <td> <label for="pagestock">Page Weight</label> <select name="pagestock"> <option value="">--Please Select--</option> <option value="White Bond 80gsm">White Bond 80gsm</option> <option value="Other">Other</option> </select> </td> </tr> <tr> <td><label for="sizeflat">Size Flat</label><input type="text" name="sizeflat" value="<?php if(isset($_POST['sizeflat'])) echo $_POST['sizeflat']; ?>"></td> <td><label for="sizefolded">Size Folded</label><input type="text" name="sizefolded" value="<?php if(isset($_POST['sizefolded'])) echo $_POST['sizefolded']; ?>"></td> <td> <label for="sides5">Sides Printed</label> <select name="sides5"> <option value="">--Please Select--</option> <option value="One Sided">One Sided</option> <option value="Two Sided">Two Sided</option> </select> </td> </tr> <tr> <td> <label for="covercolour">Cover Print Colour</label> <select name="covercolour"> <option value="">--Please Select--</option> <option value="1 Colour">1 Colour</option> <option value="2 Colour">2 Colour</option> <option value="Full Colour">Full Colour</option> </select> </td> <td> <label for="pagecolour">Page Print Colour</label> <select name="pagecolour"> <option value="">--Please Select--</option> <option value="1 Colour">1 Colour</option> <option value="2 Colour">2 Colour</option> <option value="Full Colour">Full Colour</option> </select> </td> <td><label for="pages">Number of Pages</label><input type="text" name="pages" value="<?php if(isset($_POST['pages'])) echo $_POST['pages']; ?>"></td> </tr> <tr> <td> <label for="artwork5">Artwork Supplied?</label> <select name="artwork5"> <option value="">--Please Select--</option> <option value="Yes">Yes</option> <option value="No">No</option> </select> </td> <td><label for="media5">Media Format</label><input type="text" name="media5" value="<?php if(isset($_POST['media5'])) echo $_POST['media5']; ?>"></td> <td><label for="finishing">Finishing</label><input type="text" name="finishing" value="<?php if(isset($_POST['finishing'])) echo $_POST['finishing']; ?>"></td> </tr> </tbody> <tbody id="Carbonless Books" style="display: none;"> <tr> <td> <label for="quantity6">Print Quantity</label> <select name="quantity6"> <option value="">--Please Select--</option> <option value="500">500</option> <option value="1000">1000</option> <option value="2500">2500</option> <option value="Other">Other</option> </select> </td> <td> <label for="stock5">Stock</label> <select name="stock5"> <option value="">--Please Select--</option> <option value="Carbonless">Carbonless</option> </select> </td> <td><label for="booksize">Book Size</label> <select name="booksize"> <option value="">--Please Select--</option> <option value="DL">DL</option> <option value="A5">A5</option> <option value="A4">A4</option> </select> </td> </tr> <tr> <td><label for="orientation">Book Orientation</label> <select name="orientation"> <option value="">--Please Select--</option> <option value="Portrait">Portrait</option> <option value="Landscape">Landscape</option> </select> </td> <td><label for="pages">Number of Pages</label><input type="text" name="pages" value="<?php if(isset($_POST['pages'])) echo $_POST['pages']; ?>"></td> <td> <label for="copies">Number of Copies</label> <select name="copies"> <option value="">--Please Select--</option> <option value="Single">Single</option> <option value="Duplicat">Duplicate</option> <option value="Triplicate">Triplicate</option> <option value="Quadruplicat">Quadruplicate</option> </select> </td> </tr> <tr> <td><label for="origcolour">Colour of Original</label> <select name="origcolour"> <option value="">--Please Select--</option> <option value="Blue">Blue</option> <option value="Green">Green</option> <option value="Yellow">Yellow</option> <option value="Pink">Pink</option> <option value="White">White</option> </select> </td> <td><label for="dupcolour">Colour Of Duplicate</label> <select name="dupcolour"> <option value="">--Please Select--</option> <option value="Blue">Blue</option> <option value="Green">Green</option> <option value="Yellow">Yellow</option> <option value="Pink">Pink</option> <option value="White">White</option> </select> </td> <td><label for="tripcolour">Colour Of Triplicate</label> <select name="tripcolour"> <option value="">--Please Select--</option> <option value="Blue">Blue</option> <option value="Green">Green</option> <option value="Yellow">Yellow</option> <option value="Pink">Pink</option> <option value="White">White</option> </select> </td> </tr> <tr> <td><label for="quadcolour">Colour Of Quadruplicate</label> <select name="quadcolour"> <option value="">--Please Select--</option> <option value="Blue">Blue</option> <option value="Green">Green</option> <option value="Yellow">Yellow</option> <option value="Pink">Pink</option> <option value="White">White</option> </select> </td> <td> <label for="coverstock2">Cover</label> <select name="coverstock2"> <option value="">--Please Select--</option> <option value="Soft Front">Soft Front</option> <option value="Hard Back">Hard Back</option> <option value="Croc Front">Croc Front</option> <option value="Croc Front and Back">Croc Front and Back</option> </select> </td> <td> <label for="covercolour">Cover Colour</label> <select name="covercolour">
  7. OK, So I turned error reporting on. It says: "Notice: Undefined variable: from in /home/rmdesign/public_html/wraptinprint/quotes_copy.php on line 280" Line 280: if(mail($to, $subject, $output, $from)) Line 281: die("The e-mail was sent successfully.<br />$success"); Line 282: else Line 283: echo "Unable to send e-mail."; I hope this helps The last line "Unable to send e-mail" is the warning that comes up when tested on live site
  8. thanks for the fast reply. The page give the "unable to send email" message. I dont know about turning on error checking, Im fairly new to PHP. It has taken a while for me to get the code working properly, it was given to me by someone on a forum. How do I turn on error checkng?
  9. Hi People, I need some help. I have created a website with a PHP form/s which work perfectly when uploaded to a test site situated at the back of mine. But when uploaded to the clients hosting it doesnt work. Now, I initially thought this was because the clients hosting didnt support PHP, and when I asked the client for some info all I got was a company name not a hosting package. When I visited there site it shows that even there standard package supports PHP. So, what could be going wrong between website hosts to cause the breakdown. This is the website www.wraptinprint.com.au The quotes page is the issue here, I have put up a dummy page so the actual code can be found at www.wraptinprint.com.au/quotes_copy.php All the PHP is on the page, so all you need to do is view source for both PHP and html. I have been working on this site for far too long and am completely stumped. Please help
  10. Thanks for the reply, unfortunately this just made the default option another thing which also automatically shows up in the email What i want is for the user to choose whether they want to input details into these fields or leave them at the ----please select--- option. if left at the ----please select----- option i want that input to be discluded from the email Is there a way I can do this?
  11. Hello, I am very very new to PHP and have created a form that changes depending on a selection option. The website is here http://www.rmdesignstudio.com.au/wraptinprint/quotes.php and the PHP is all on the quotes.php page. The form sends to the email but when you fill in one form (example: Business Cards) the form sends, but along with all the entered fields the email also includes all the fields in all the hidden forms that werent filled in. I believe it is because they are drop down boxes and it is sending the first option in the list which happens to be "-----Please Select-----" Is there something I should be doing to my selection input field for this not to show up? Otherwise is there something I need to add to my PHP so it checks for the fields being filled in? I dont know how to add my code to this post, so if you could either show me or view my code via view source that would be awesome.
×
×
  • 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.