Jump to content

aladiyat23

Members
  • Posts

    39
  • Joined

  • Last visited

    Never

Everything posted by aladiyat23

  1. maaaan this is so annoying. I got ONE email and then tried it again and nothing. I put the error script back in there and its not finding any errors. You've helped a lot so I dont know if you know of anything else, thanks for the help :) Regards, Carrie
  2. i uploaded the script to my own site and when i tested it from there i didnt receive any errors... still havent received the email but I'll give it a few more minutes before trying your last suggestion. Thanks for all your help! Hope I grasp php soon. :)
  3. ok, thanks for all your help... And for me to understand it better... i ran phpinfo() and found the SMTP info, so I see what needs to be changed but I cant get to the php.ini file. This server is also ran by someone thats running a hundred other accounts from there. I dont have control panel access or anything. They didnt even know about php when I called. SOOOO, I'm trying to understand further by googling and all that crap. What would you do? Is there a way to host the script elsewhere but run the form from there?
  4. hmmm... ok. Im not sure how to address the error though :/
  5. woooah... ok, here are the errors that came up: Notice: Undefined index: _10 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 18 Notice: Undefined index: _15 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 23 Notice: Undefined index: _16 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 24 Notice: Undefined index: _17 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 25 Notice: Undefined index: _18 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 26 Notice: Undefined index: _20 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 28 Notice: Undefined index: _21 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 29 Notice: Undefined index: _31 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 39 Notice: Undefined index: _35 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 43 Notice: Undefined index: _38 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 46 Notice: Undefined index: _39 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 47 Notice: Undefined index: _40 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 48 Notice: Undefined index: _41 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 49 Notice: Undefined index: _44 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 52 Notice: Undefined index: _46 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 54 Notice: Undefined index: _48 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 56 Notice: Undefined index: _49 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 57 Notice: Undefined index: _50 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 58 Notice: Undefined index: _51 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 59 Notice: Undefined index: _56 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 64 Notice: Undefined index: _61 in d:\inetpub\aquagirl\WCF\datasubmit.php on line 69 Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in d:\inetpub\aquagirl\WCF\datasubmit.php on line 191 Mail returned false:
  6. ok I changed the variables from just numbers... I didnt exactly follow what you said, I know I did it the hard way and just went thru and added an underscore on each. Now the script goes thru to the 'thank you' page, but i dont receive the email. This is frustrating! It worked perfect for another project, all I did was change these variables. Any more advice? I attached the updated scripts... [attachment deleted by admin]
  7. THank you so much, I'll change what you mentioned and let you know how it goes. :)
  8. I searched the forum for a previous thread and couldnt find one, i apologize if it seems repetitive... after hitting submit, my form goes to the php mailer script (datasubmit.php) but then just stops. this form is stripped of all validation and error checks... i attached it here, can anyone help? I should add that this script worked perfectly for another form, but I needed it for a new client and modified it. The only thing I changed was the custom info for the form fields... (i.e., $email, $to... etc.) Thank u in advance :) [attachment deleted by admin]
  9. im just not getting it and its so frustrating. i have a form online and i want the input to save in my database. my host provides mysql and phpmyadmin. i'm just looking for a good tutorial. (i've posted before and have gotten helpful replies but im just not getting it. its one of those things that will just hit me suddenly.)  >:( thanks!!!
  10. ok i feel like an idiot. i have a table created and a database waiting to be filled... this was created using phpmyadmin that my host provides. ok... now for why i feel like an idiot... i cant find any tutorials or what to search for or where to look even for help on getting my contact form to write to this database. or am i ass backwards on this? frustrated. :(
  11. Anyone know a good site for info on sending html emails from a php form? I just want to change the font color of the input fields within the email sent, not on the php form itself. I would also like to find info on the customizing possiblities, like horizontal lines between fields etc. Thanks in advance for any help.
  12. Are there any programs that do the work for you? As much as I want to learn this quickly, I don't think I'll have enough time to learn and finish the client job... probably screwed huh.
  13. Heyyyyyy where my girls at??? I'm FEMALE, just turned 26, name is Carrie. I started messing with print design about 10 years ago and I've been a flash developer for the last 4 years. JUST now getting into php/sql in the last month and I love it! Not many girls in this field... and that doesnt suck at all bc I'll probably get your job!! ohhhhhhhhhhh jk Hi everybody.
  14. Thanks to you both!!! I'll check out those tutorials :)
  15. Hi, I've been given the task of creating a form online and storing the user input in a single excel sheet... or a database, whichever is less time consuming for me at this point. What is the most efficient way of doing this? Php/sql? I'm at a loss with which terms to google search for help... Any advice would be greatly appreciated
  16. sorry, i dont follow it as easily as I'm sure it is... for an example... here are samples of my $message script and my selection... if ($_SERVER['REQUEST_METHOD']=="POST"){    $to = "@gmail.com";    $subject = "Data Request";    $email = $_POST['requiredemail'];    $address = $_POST['requiredaddress'];    $zip = $_POST['requiredzip'];    $headers = "From: $email \r\n";   $message = "    From: $email\n    Address: $address\n    Zip: $zip\n"; <select >   <option>Select One</option>   <option value="D,tb1^E,tb2">Counts</option>   <option value="D,tb2^E,tb1">Orders</option> </select>
  17. Is it possible to change the email subject based on the selection in a drop down?
  18. ok here's a snippet of the form... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script language="JavaScript" type="text/javascript"> function zxcEnableDisable(zxcobj){ zxcval=zxcobj.options[zxcobj.selectedIndex].value if (zxcval.length<1){ return } zxcenable=zxcval.split('^')[1].split(','); for (zxc0=1;zxc0<zxcenable.length;zxc0++){ zxcobj=document.getElementById(zxcenable[zxc0]); zxcobj.removeAttribute('disabled') } zxcdisable=zxcval.split('^')[0].split(','); for (zxc1=1;zxc1<zxcdisable.length;zxc1++){ zxcobj=document.getElementById(zxcdisable[zxc1]); zxcobj.setAttribute('disabled','disabled') } } </script> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title></title> </head> <body> <?php if ($_SERVER['REQUEST_METHOD']=="POST"){   $to = "xxx";   $subject = "Data Request";   $email = $_POST['requiredemail'];   $deaname = $_POST['requireddealername'];   $address = $_POST['requiredaddress'];   $zip = $_POST['requiredzip'];   $quanity = $_POST['requiredquanity'];   $list = $_POST['requiredlist'];   $range = $_POST['range'];   $year = $_POST['year'];   $make = $_POST['make'];   $other = $_POST['other'];     $mime_boundary="==Multipart_Boundary_x".md5(mt_rand())."x";     $tmp_name = $_FILES['filename']['tmp_name'];   $type = $_FILES['filename']['type'];   $name = $_FILES['filename']['name'];   $size = $_FILES['filename']['size'];     $message = "   From: $email\n   Dealer Name: $deaname\n   Address: $address\n   Zip: $zip\n   Quanity: $quanity\n   List: $list\n   Range: $range\n   Year: $year\n   Make: $make\n   Other: $other\n";     if (file_exists($tmp_name)){   if(is_uploaded_file($tmp_name)){   $file = fopen($tmp_name,'rb');   $data = fread($file,filesize($tmp_name));   fclose($file);     $data = chunk_split(base64_encode($data)); }   $headers = "From: $email\r\n" .   "MIME-Version: 1.0\r\n" .   "Content-Type: multipart/mixed;\r\n" .   " boundary=\"{$mime_boundary}\"";   $message = "This is a multi-part message in MIME format.\n\n" .   "--{$mime_boundary}\n" .   "Content-Type: text/plain; charset=\"iso-8859-1\"\n" .   "Content-Transfer-Encoding: 7bit\n\n" .   $message . "\n\n";   $message .= "--{$mime_boundary}\n" .         "Content-Type: {$type};\n" .         " name=\"{$name}\"\n" .         //"Content-Disposition: attachment;\n" .         //" filename=\"{$fileatt_name}\"\n" .         "Content-Transfer-Encoding: base64\n\n" .         $data . "\n\n" .         "--{$mime_boundary}--\n"; if (@mail($to, $subject, $message, $headers)) echo '<META HTTP-EQUIV="REFRESH" CONTENT="1;URL=http://www.dmmipromotions.com/submission.html">'; else echo "An error has occured. Please fill out the form and try again";   } } else { ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data" name="form1"> <fieldset style="width: 375px; padding:10px"><legend>Which Task would you like to accomplish?</legend><br> <select onChange="zxcEnableDisable(this);" name="selection">   <option>Select One</option>   <option value="D,tb1^E,tb2">Counts</option>   <option value="D,tb2^E,tb1">Orders</option> </select> </fieldset> <fieldset style="width: 375px; padding:10px" id="tb1"> <legend>Upload Your spreadsheet </legend> <br> <span>Selected Zip Codes (.xls)</span> <input name="filename" type="file" size="30"/> </fieldset> <input name="submit" type="submit" value="Submit"/> </form><?php } ?>
  19. Anyone know how to tweak the email attachment script so that a form is submitted regardless if a file is uploaded? I think this is where i would make the change, just not sure how   if (file_exists($tmp_name)){   if(is_uploaded_file($tmp_name)){   $file = fopen($tmp_name,'rb');   $data = fread($file,filesize($tmp_name));   fclose($file); Thanks!
  20. This works for me... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title></title> </head> <body> <?php if ($_SERVER['REQUEST_METHOD']=="POST"){    $to = "recipient email";    $subject = "Your subject";    $email = $_POST['requiredemail'];    $address = $_POST['requiredaddress'];    $zip = $_POST['requiredzip'];        $mime_boundary="==Multipart_Boundary_x".md5(mt_rand())."x";        $tmp_name = $_FILES['filename']['tmp_name'];    $type = $_FILES['filename']['type'];    $name = $_FILES['filename']['name'];    $size = $_FILES['filename']['size'];        $message = "    From: $email\n    Address: $address\n    Zip: $zip\n        if (file_exists($tmp_name)){    if(is_uploaded_file($tmp_name)){    $file = fopen($tmp_name,'rb');    $data = fread($file,filesize($tmp_name));    fclose($file);        $data = chunk_split(base64_encode($data)); }    $headers = "From: $email\r\n" .    "MIME-Version: 1.0\r\n" .    "Content-Type: multipart/mixed;\r\n" .    " boundary=\"{$mime_boundary}\"";    $message = "This is a multi-part message in MIME format.\n\n" .    "--{$mime_boundary}\n" .    "Content-Type: text/plain; charset=\"iso-8859-1\"\n" .    "Content-Transfer-Encoding: 7bit\n\n" .    $message . "\n\n";    $message .= "--{$mime_boundary}\n" .          "Content-Type: {$type};\n" .          " name=\"{$name}\"\n" .          //"Content-Disposition: attachment;\n" .          //" filename=\"{$fileatt_name}\"\n" .          "Content-Transfer-Encoding: base64\n\n" .          $data . "\n\n" .          "--{$mime_boundary}--\n"; if (@mail($to, $subject, $message, $headers)) echo "Thank you your file has been sent"; else echo "An error has occured. Please fill out the form and try again";    } } else { ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data" name="form1"> <input name="filename" type="file" size="30"/> <input name="submit" type="submit" value="Submit"/> </form><?php } ?> </body> </html>
  21. AHHh i spoke too soon... the upload field is disabled based on a selection. setting it to readonly didnt change anything Any more advice?? And thank you very much by the way ;)
  22. I did a little research on using readonly instead... not sure how to do this
×
×
  • 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.