Jump to content

orr16875

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by orr16875

  1. ok, now it's all online: www.inhomeestimates.com and it's being hosted by "godaddy". there is a mail server - a webmail (webbased) email, so i guess there is no problem with the server any more (is there ?) but yet when i click "submit" on one of the forms (ac.html), i still get a blank page.you can see all the files on the server - but only the ac.html is linked to the mail.php (for now)help is needed and appreciated
  2. thank you justsomeguy,i've downloaded "phpED" and it's a lot easier that way. the only thing is i'm getting now a warning:Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() Can i fix this within the script, and not on my computer (because what will happen in the client side? ) <?php$to = 'info@inhomeestimates.com';$subject= $_REQUEST['Project'];$headers .= 'From:etimate required'. "\r\n"; $Date = $_REQUEST['Date'];$Project = $_REQUEST['Project:'];$Description = $_REQUEST['Description'];$schedule = $_REQUEST['schedule'];$FirstName = $_REQUEST['FirstName'];$LastName = $_REQUEST['LastName'];$Address = $_REQUEST['Address'];$City = $_REQUEST['City'];$State = $_REQUEST['State'];$Zip = $_REQUEST['Zip'];$HomePhone = $_REQUEST['HomePhone'];$WorkPhone = $_REQUEST['WorkPhone'];$Cell = $_REQUEST['Cell'];$email = $_REQUEST['eMail'];$Estimates = $_REQUEST['Estimates'];$Budget = $_REQUEST['Budget'];$Advertising = $_REQUEST['Advertising'];$agree = $_REQUEST['agree'];mail($to, $subject ,$message, $headers);?>
  3. I've wrote a mail.php file and i'm trying to send the form thru it. i don't get any errors, but since i did it, i don't get the form to the email (after being validated with JS ), and the user should get a "thankyou.html" page but i get a blank page instead. how should i do the "thankyou.html" page.there is the mail.php code:<html><body><? php$to = "info@inhomeestimates.com";$subject= $_REQUEST['Project:'];$headers .= 'MIME-Version: 1.0' . "\r\n";$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";$Date = $_REQUEST['Date'];$Project: = $_REQUEST['Project:'];$Description = $_REQUEST['Description'];$schedule = $_REQUEST['schedule'];$FirstName = $_REQUEST['FirstName'];$LastName = $_REQUEST['LastName'];$Address = $_REQUEST['Address'];$City = $_REQUEST['City'];$State = $_REQUEST['State'];$Zip = $_REQUEST['Zip'];$HomePhone = $_REQUEST['HomePhone'];$WorkPhone = $_REQUEST['WorkPhone'];$Cell = $_REQUEST['Cell'];$email = $_REQUEST['eMail'];$Estimates = $_REQUEST['Estimates'];$Budget = $_REQUEST['Budget'];$Advertising = $_REQUEST['Advertising'];$agree = $_REQUEST['agree'];mail("$to, $subject:, "from: $eMail");header("Location: http://www.inhomeestimates.com/thankyou.html");?>
  4. first, thank you for helping me :)now i've wrote a mail.php file and i'm trying to send the form thru it. i don't get any errors any more... but since i did it, i don't get the form to the email, and the user should get a "thankyou.html" page but i get a blank page instead. how should i do the "thankyou.html" page.there is the mail.php code:<html><body><? php$to = "info@inhomeestimates.com";$subject= $_REQUEST['Project:'];$headers .= 'MIME-Version: 1.0' . "\r\n";$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";$Date = $_REQUEST['Date'];$Project: = $_REQUEST['Project:'];$Description = $_REQUEST['Description'];$schedule = $_REQUEST['schedule'];$FirstName = $_REQUEST['FirstName'];$LastName = $_REQUEST['LastName'];$Address = $_REQUEST['Address'];$City = $_REQUEST['City'];$State = $_REQUEST['State'];$Zip = $_REQUEST['Zip'];$HomePhone = $_REQUEST['HomePhone'];$WorkPhone = $_REQUEST['WorkPhone'];$Cell = $_REQUEST['Cell'];$email = $_REQUEST['eMail'];$Estimates = $_REQUEST['Estimates'];$Budget = $_REQUEST['Budget'];$Advertising = $_REQUEST['Advertising'];$agree = $_REQUEST['agree'];mail("$to, $subject:, "from: $eMail");header("Location: http://www.inhomeestimates.com/thankyou.html");?>
  5. ok got it. thanksnow, is there a program i can use so the form will be submitted thru. i preffer it won't be sent using email program.
  6. i've tried using Opera like you said, but no error accured (?)could you specify exactly what's the error in the else(if( ... (i quite new to JS)thank you
  7. well it's only on my laptop, hasn't been published yet, but the errors are:1. when the page uploads, window popup error: Line: 20 Char: 3 Error: Syntax error2. when i click "submit", popup error: Line: 61 Char: 1 Error: Object expectedthen it offers to send the form thru email.
  8. when i open the page a popped alert declares: "error in line 20". then when i click: "submit" it poppes againg: "error in line 62".the code is in xhtml
  9. <!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" lang="en" xml:lang="en" dir="ltr"> <head> <title>In Home Estimate</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <script type="text/javascript"> <!-- function validate() { if(document.f1.FirstName.value=="") { alert("Please enter your first name"); document.f1.FirstName.focus(); return false; } { else(if(document.f1.City.value=="") alert("Please enter City"); document.f1.City.focus(); return false; } else(if(document.f1.HomePhone.value=="") { alert("Please enter home phone number"); document.f1.HomePhone.focus(); return false; } else(if(document.f1.eMail.value=="") { alert("Please fill in email address"); document.forms.f1.eMail.focus(); return false; } else(if(document.f1.eMail.value.indexOf('@')=='-1' || document.f1.eMail.value.indexOf('.')=='-1' || document.f1.eMail.value.indexOf(' ')!='-1') { alert("Please check your email address"); document.f1.eMail.focus(); return false; } else return true;}//--> </script> </head> <body><span style="position:absolute; top:160px; left:310px; font-family:Century Gothic, Arial Rounded MT Bold; font-size:18pt; font-weight:bolder; color:gray;">Project Type: AC</span><span style="position:absolute; left:280px; top: 192px;"><form method="get" name="f1" id="f1" action="mailto:info@inhomeestimates.com" onsubmit="return validate();" enctype="text/plain"> <table width="50%"><tr><td><strong>First Name</strong></td><td><input type="text" name="FirstName" id="FirstName" size="15" maxlength="15" /></td></tr><tr><td><strong>City</strong></td><td><input type="text" name="City" id="City" size="15" maxlength="25" /></td></tr><tr><td><strong>Home Phone</strong></td><td><input type="text" name="HomePhone" id="HomePhone" size="15" maxlength="15" /></td></tr><tr><td><strong>Email</strong></td><td><input type="text" name="eMail" id="eMail" size="15" maxlength="30" /></td></tr><tr><td colspan="2" width="50%" align="center"><button type="submit" /><strong>Get Estimates!</strong><button type="reset" />Reset Form</td></tr> </table></form> </span></body></html>
  10. I've tried to erase the "enctype" completely, but the file download box still pops up.
  11. i need the form validator to check the form without the user need to refill the whole form from scrach, just popping up an alert to fill up required fields. this is my file:<?php$sendto = "info@inhomeestimates.com";$Date = $_POST['Date'];$Project: = $_POST['Project:'];$Description = $_POST['Description'];$schedule = $_POST['schedule'];$FirstName = $_POST['FirstName'];$LastName = $_POST['LastName'];$Address = $_POST['Address'];$City = $_POST['City'];$State = $_POST['State'];$Zip = $_POST['Zip'];$HomePhone = $_POST['HomePhone'];$WorkPhone = $_POST['WorkPhone'];$Cell = $_POST['Cell'];$eMail = $_POST['eMail'];$Estimates = $_POST['Estimates'];$Budget = $_POST['Budget'];$Advertising = $_POST['Advertising'];$agree = $_POST['agree'];$sendmail= mail("$sendto", "$Project:", from: $eMail");$if($FirstName || $City || $HomePhone || $eMail == "" ) { echo ("please fill in First Name, City, Home phone # and Email address"); }else { $sendmail = mail("$sendto", "$Date", "$Project:", "$Description", "$schedule", "$FirstName", "$LastName", "$Address", "$City", "$State", "$Zip", "$HomePhone"?>another thing:when i click "submit" in the form file, windows offers to open the mail.php file. why is that?this is the part of the form code:<form method="post" action="mail.php" enctype="application/x-www-form-urlencoded">
×
×
  • Create New...