Jump to content

TGWSE_GY

Members
  • Posts

    255
  • Joined

  • Last visited

    Never

Everything posted by TGWSE_GY

  1. Well I have it down to one problem and that is firebug is returning "$ not defined" not sure what this means and can't really find anything in searching online. Thanks for the help in advance.
  2. So I am trying to code a drop down using -> http://jquery-ui.googlecode.com/svn/branches/labs/selectmenu/index.html?noheader I have successfully gotten the style applied to the dropdown list however when you click on it it is not dropping down the list. Hopefully someone can tell me where I am going wrong because I have just started using JQuery recently to add to my arsenal of web development tricks. Link to what I am working on here -> http://visualrealityink.com/dev/clients/rug_src/scratchbox%20v2/frontend/inc/leftnavi/left_nav.php# Thanks for your help in advance
  3. http://visualrealityink.com/dev/clients/ar/parents/ so now I am trying to get the green dot to move with the images in the screen however when I use the same nextId and prevId for both slider and slider2 neither one will scroll. Any help would be great! Thanks
  4. Ok So this is what I have so far, http://visualrealityink.com/dev/clients/ar/parents/ the code is in here for easy slider however the buttons are no longer working. All I did was change their position so they were on either side of the phone. Thanks in advance.
  5. I am wanting to take an image of a cellphone cutout the screen and have images scroll where the screen is at. Also there is a left and right button that I am wanting to use to control to progression of the images. There is also bullet-esque images that have to rotate as the image rotates, here is a link to and image of what I am wanting to achieve. Thanks in advance for the help!
  6. sasa thank you so much as usuall your advice and code are flawless!
  7. So I have an interesting one for you guys this AM, I first want to make it very clear that I am not scraping code, rather I am scraping data that is needed to import into a shopping cart system for someone. I have a URL that I am trying to scrape required data off of, however it is not returning all the data that I want. I have created a function that uses preg_match_all() and regex and I am still having issues striping what I want. here is a link to my test what I am wanting to strip from http://visualrealityink.com/dev/clients/rug_src/scrapeing/Rugsource/www.vendio.com/stores/Rugsource1/item/other/tribal-wool-3x5-shiraz-persian/lid=10363581.html I am wanting to grab all this data: Here is the code note that $url holds the link above. $html = file_get_contents($url); $newlines = array("\t","\n","\r","\x20\x20","\0","\x0B"); $html = str_replace($newlinews, "", html_entity_decode($html)); preg_match_all('/<tr><td width="50%" align="right"><font color="#800000"><b>[^\s ](.*?)<\/b><\/font><\/td><td width="50%" align="left">[^\s ](.*?)<\/td><\/tr>/', $html, $matches, PREG_SET_ORDER); foreach($matches_label as $match){ $count = 0; echo $match[$count]; echo "<br>"; $count++; } echo $count; This returns the following it is missing: You can see the script in action here -> http://visualrealityink.com/dev/clients/rug_src/scrapeing/scrape_tst.php Thanks in advance for all of your help
  8. Ok for security and other purposes I went to just phpMailer! its more friendly as far as attachments go plus more secure I think Thanks for all the help guys!!!!!!
  9. when I do mail( $to, $subject, $body, $headers ); the message is never sent, this is per the instructions however when I run mail( $to, $subject, $headers, $body ); the email is sent but the body of the message is blank. Seems to be an odd trade off either the attachment gets delivered with no body text, or the email doesn't get delivered at all. Anyone ever had similar issues? Or know what could be causing it to go haywhire? Thanks again
  10. Am I not putting the headers together right, or the message? Or is it the way its being sent to mail()? Any help would be greatly appreciated. Thanks again
  11. Yes $message and $content are both called right before $image=........ I set $message = ""; and $content =""; I am so confused at this point, doesn't make much sense that the body isn't getting delivered along with the message.
  12. Everything about the email is sending except the message text does anyone know what the issue could be? here is the block of code that sends the email Thanks in advance $image = "http://www.visualrealityink.com/dev/clients/arzan/snell_form/images/email.png"; echo "got to process form"; $target_path = "upload/"; $path = $target_path = $target_path . basename( $_FILES['file']['name']); $boundary = '-----=' . md5( uniqid ( rand() ) ); $message .= "Content-Type: application/msword; name=\"my attachment\"\n"; $message .= "Content-Transfer-Encoding: base64\n"; $message .= "Content-Disposition: attachment; filename=\"$path\"\n\n"; echo $path; $fp = fopen($path, 'r'); do //we loop until there is no data left { $data = fread($fp, 8192); if (strlen($data) == 0) break; $content .= $data; } while (true); $content_encode = chunk_split(base64_encode($content)); $message .= $content_encode . "\n"; $message .= "--" . $boundary . "\n"; $message .= $image . "<br />" . $_POST['name'] . "submitted a resume on our website. Please review the applications and contact the candidate if their resume is a fit for any open opportunities with the company. <br><br> Thank you. <br><br> SEI Team"; $headers = "From: \"Me\"<me@example.com>\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-Type: multipart/mixed; boundary=\"$boundary\""; mail('george@visualrealityink.com', 'Email with attachment from PHP', $headers, $message);
  13. ok so I have progress! now the file is retrieved and uploaded but even though it is uploaded it still gives me an error that the upload failed (hardcoded error trap). Where I am now confused is that even though "if(move_uploaded_file($_FILES['file']['tmp_name'], $target_path))" succeeds and uploads the file it still gives me the else error statement, this doesn't make much sense does anyone have a suggestion? Here is the trouble area $target_path = "uploads/"; $target_path = $target_path . basename( $_FILES['file']['name']); echo $target_path; if(move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES['file']['name']). " has been uploaded"; } else{ echo "There was an error uploading the file, please try again!"; } $path_of_uploaded_file = '/uploads/' . $_FILES['file']['name']; process_form(); Here is my full source code <!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> <style> #form_container{ display:block; position:absolute; width:610px; min-height:450px; background:#f8f8f8; padding: 5px 5px 5px 5px; font-family:Arial, Helvetica, sans-serif; font-size:14px; } #form { min-height:450px; width:100%; background:#ececec; padding:0 0 0 0; } #formheader { background:url(images/form2_08.png) no-repeat #2f2f2f; margin:0 0 0 0; padding:0 0 0 0; width:631; height:30px;} form{margin:35px 0 0 35px;} fieldset div { margin:0.3em 0; clear:both; } label { float:left; width:10em; text-align:left; margin-right:1em; font-family:Arial, Helvetica, sans-serif; font-size:14px; } input { padding:0.15em; margin:0 0 0 -110px; width:300px; background:url(images/inputbg.png) no-repeat; border:0px solid #ddd; background:#fafafa; -moz-border-radius:0.4em; -khtml-border-radius:0.4em; } .bg2{background:url(images/inputbg.png) no-repeat; height:28px; line-height:28px;} fieldset { border:0px solid #ddd; padding:0 0.5em 0.5em; margin:0 0 0 -100px; } #details{font-size:10px;} #logo{background:url(images/form2_11.png) no-repeat; width:189px; height:238px; margin:-200px 0 0 400px; position:absolute;} #submit{margin:14px 0 0 -5px; border:none; position:absolute; cursor:pointer; cursor:hand;} #reset{border:none; margin:14px 0 0 115px; position:absolute; cursor:pointer; cursor:hand; } #divinputfile{ background:url(images/form2_27.png) no-repeat 100% 1px; height:43px; line-height:43px; width:340px; }#divinputfile #filepc{ opacity: 0.0; -moz-opacity: 0.0; filter: alpha(opacity=00); font-size:18px; margin:0 0 0 0; cursor:hand; cursor:pointer; } #fakeinputfile{ margin-top:-28px; } #fakeinputfile #fakefilepc{ background:url(images/inputbg2.png) no-repeat; style:none; width:240px; height:28px; line-height:28px; border:0; margin:5px 0 0 0; font-size:18px; font-family:Arial; } button { cursor: hand; cursor: pointer; padding: 0px; margin: 0 0 0 0; } a.link_button{ cursor: hand; cursor: pointer; } .fileupload{ margin:0 0 0 50px; } input[type="file"] { cursor: pointer; } .error{font-size:9px; font-family:Arial, Helvetica, sans-serif; color:#F00; } .error ul { text-decoration: none; list-style: none; } .error li { color: #F00;} .captcha_form { margin: 0 0 0 -45px; width:235px; } #captchaimage{ padding:0 0 10px 0;} .small { font-size:9px;} </style> </head> <body> <?php if ($_POST['_submit_check']) { // If validate_form( ) returns errors, pass them to show_form( ) if ($form_errors = validate_form()) { show_form($form_errors); } else { // The submitted data is valid, so process it process_form(); } } else { // The form wasn't submitted, so display show_form(); } function show_form($errors = '') { // If the form is submitted, get defaults from submitted parameters if ($_POST['_submit_check']) { $defaults = $_POST; } else { // Otherwise, set our own defaults: medium size and yes to delivery $defaults = array('IssueDate' => '','ExpiryDate' => ''); } if ($errors) { $error_text = 'You need to correct the following errors:'; $error_text .= '<br /><ul>'; $error_text .= implode('<li>',$errors); $error_text .= '</li></ul>'; } else { // No errors? Then $error_text is blank $error_text = ''; } include 'formhelpers.php' ?> <div id="form_container"> <div id="form"> <br /> <div id="formheader"> </div> <form method="POST" action="<?php print $_SERVER['PHP_SELF']; ?>" enctype="multipart/form-data"> <span class="error"> <?php print $error_text ?> </span> <input type="hidden" name="_submit_check" value="1"/> <div> <label for="name">Name: </label> <?php input_text('name', $defaults) ?> </div> <div> <label for="email">Email:</label> <?php input_text('email', $defaults) ?> </div> <div> Attach Resume: <span class="small">(1MB : PDF : DOC : DOCX : TXT)</span> </div> <div> <!--<input type="hidden" name="MAX_FILE_SIZE" value="1000000" /> <label for="userfile"></label> <input type="file" name="userfile" id="userfile"/> </div>--> <div id="divinputfile"> <input name="file" type="file" size="30" id="filepc" onchange="document.getElementById('fakefilepc').value = this.value;"/> <div id="fakeinputfile"> <input name="fakefile" type="text" class="link_button" id="fakefilepc" /> </div> </div> <div id="captchaimage"><img id="captcha" src="/securimage/securimage_show.php" alt="CAPTCHA Image" /></div> <div><label for="email"><a style="text-decoration: none" href="#" onclick="document.getElementById('captcha').src = 'securimage/securimage_show.php?' + Math.random(); return false">New Captcha: </a></label> <input type="text" name="captcha_code" class="captcha_form" size="10" maxlength="6" /> </div> <button type="submit" value="submit" id="submit" ><img src="images/form2_33.png" /></button> <button type="reset" value="reset" id="reset" ><img src="images/form2_37.png" /></button> </form> </div> <div id="logo"></div> </div> </div> <?php } function validate_form() { $errors = array( ); // name is required if ($_POST['name'] == "") { $errors[ ] = 'Please enter your name.'; } if (! strlen(trim($_POST['email']))) { $errors[ ] = 'Please enter your Email.'; } if (! preg_match('/^[^@\s]+@([-a-z0-9]+\.)+[a-z]{2,}$/i', $_POST['email'])) { $errors[ ] = 'Please enter a valid e-mail address'; } $filename=$_FILES['file']['name']; //For size if($_FILES["file"]["size"]>1000000) //1 mb { $errors[ ] = "File size should be less than 1MB"; } echo $_FILES['file']['name']; // for extention $ext = end(explode('.', $filename)); if($ext=='doc' || $ext=='txt' || $ext=='pdf' || $ext=='docx' ) { $target_path = "uploads/"; $target_path = $target_path . basename( $_FILES['file']['name']); echo $target_path; if(move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES['file']['name']). " has been uploaded"; } else{ echo "There was an error uploading the file, please try again!"; } $path_of_uploaded_file = '/uploads/' . $_FILES['file']['name']; process_form(); } else { $errors[ ] = "Only doc or pdf or txt file is allowed: $filename "; } return $errors; } function process_form() { $image = "http://www.visualrealityink.com/dev/clients/arzan/snell_form/images/email.png"; include_once('Mail.php'); include_once('Mail_Mime/mime.php'); $to = 'george@visualrealityink.com'; $text = $image . "<br />" . $values['name'] . "submitted a resume on our website. Please review the applications and contact the candidate if their resume is a fit for any open opportunities with the company. <br><br> Thank you. <br><br> SEI Team"; $message=new Mail_mime(); $message=setTXTBody($text); $message=addAttachment($path_of_uploaded_file); $body = $message->get(); $extraheaders = array("From"=>$formValues['email'], "Subject"=>$subject, "Reply-To"=>$formValues['email']); $headers = $message->headers($extraheaders); $mail = Mail::factory("mail"); $mail->send($to, $headers, $body); echo "email sent"; } ?> </body> </html> Thanks Again
  14. <input name="file" type="file" size="30" id="filepc" onchange="document.getElementById('fakefilepc').value = this.value;"/> <div id="fakeinputfile"> <input name="fakefile" type="text" class="link_button" id="fakefilepc" /> </div> shows that the file input is named file and so I should be able to call $_FILES['file']['name'] and get the file name but its not working. This is becomming frustrating because I have done upload forms before. Its not making any sense why the file is not getting uploaded and retrieved.
  15. monkeytooth: thanks for the reply, I understand what you are saying and we both know the security issues behind attachments via php and yes it should be uploaded and linked in the email. However the client has no experience with ftp and the designer that wants this done is not budging on email attachment through php no matter how I tell him that its wrong. So I guess this is something that I am going to need to plug away with until I get it. I thought someone could offer some reasoning to why the file was not getting pulled from the form. Although I like the information you provided and yes I knew most of it before its down to what the client wants and sometimes you just cant change their mind no matter how much talking you do and smoke you blow. Thanks Again, any other suggestions would be appreciated.
  16. I am attempting to get my email form with file attachment to work. Apparently the file is not reaching getting to the validation portion of the page I have switched $_FILES['X'] on line 203 from file to fakefile as they are labeled in the form also I am employing css hacks to change the input file upload field to have a custom button example -> http://visualrealityink.com/dev/clients/arzan/snell_form_final/form.php here is my code I appreciate any help <!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> <style> #form_container{ display:block; position:absolute; width:610px; min-height:450px; background:#f8f8f8; padding: 5px 5px 5px 5px; font-family:Arial, Helvetica, sans-serif; font-size:14px; } #form { min-height:450px; width:100%; background:#ececec; padding:0 0 0 0; } #formheader { background:url(images/form2_08.png) no-repeat #2f2f2f; margin:0 0 0 0; padding:0 0 0 0; width:631; height:30px;} form{margin:35px 0 0 35px;} fieldset div { margin:0.3em 0; clear:both; } label { float:left; width:10em; text-align:left; margin-right:1em; font-family:Arial, Helvetica, sans-serif; font-size:14px; } input { padding:0.15em; margin:0 0 0 -110px; width:300px; background:url(images/inputbg.png) no-repeat; border:0px solid #ddd; background:#fafafa; -moz-border-radius:0.4em; -khtml-border-radius:0.4em; } .bg2{background:url(images/inputbg.png) no-repeat; height:28px; line-height:28px;} fieldset { border:0px solid #ddd; padding:0 0.5em 0.5em; margin:0 0 0 -100px; } #details{font-size:10px;} #logo{background:url(images/form2_11.png) no-repeat; width:189px; height:238px; margin:-200px 0 0 400px; position:absolute;} #submit{margin:14px 0 0 -5px; border:none; position:absolute; cursor:pointer; cursor:hand;} #reset{border:none; margin:14px 0 0 115px; position:absolute; cursor:pointer; cursor:hand; } #divinputfile{ background:url(images/form2_27.png) no-repeat 100% 1px; height:43px; line-height:43px; width:340px; }#divinputfile #filepc{ opacity: 0.0; -moz-opacity: 0.0; filter: alpha(opacity=00); font-size:18px; margin:0 0 0 0; cursor:hand; cursor:pointer; } #fakeinputfile{ margin-top:-28px; } #fakeinputfile #fakefilepc{ background:url(images/inputbg2.png) no-repeat; style:none; width:240px; height:28px; line-height:28px; border:0; margin:5px 0 0 0; font-size:18px; font-family:Arial; } button { cursor: hand; cursor: pointer; padding: 0px; margin: 0 0 0 0; } a.link_button{ cursor: hand; cursor: pointer; } .fileupload{ margin:0 0 0 50px; } input[type="file"] { cursor: pointer; } .error{font-size:9px; font-family:Arial, Helvetica, sans-serif; color:#F00; } .error ul { text-decoration: none; list-style: none; } .error li { color: #F00;} .captcha_form { margin: 0 0 0 -45px; width:235px; } #captchaimage{ padding:0 0 10px 0;} .small { font-size:9px;} </style> </head> <body> <?php if ($_POST['_submit_check']) { // If validate_form( ) returns errors, pass them to show_form( ) if ($form_errors = validate_form()) { show_form($form_errors); } else { // The submitted data is valid, so process it process_form(); } } else { // The form wasn't submitted, so display show_form(); } function show_form($errors = '') { // If the form is submitted, get defaults from submitted parameters if ($_POST['_submit_check']) { $defaults = $_POST; } else { // Otherwise, set our own defaults: medium size and yes to delivery $defaults = array('IssueDate' => '','ExpiryDate' => ''); } if ($errors) { $error_text = 'You need to correct the following errors:'; $error_text .= '<br /><ul>'; $error_text .= implode('<li>',$errors); $error_text .= '</li></ul>'; } else { // No errors? Then $error_text is blank $error_text = ''; } include 'formhelpers.php' ?> <div id="form_container"> <div id="form"> <br /> <div id="formheader"> </div> <form method="POST" action="<?php print $_SERVER['PHP_SELF']; ?>" enctype="multipart/form-data"> <span class="error"> <?php print $error_text ?> </span> <input type="hidden" name="_submit_check" value="1"/> <div> <label for="name">Name: </label> <?php input_text('name', $defaults) ?> </div> <div> <label for="email">Email:</label> <?php input_text('email', $defaults) ?> </div> <div> Attach Resume: <span class="small">(1MB : PDF : DOC : DOCX : TXT)</span> </div> <div> <!--<input type="hidden" name="MAX_FILE_SIZE" value="1000000" /> <label for="userfile"></label> <input type="file" name="userfile" id="userfile"/> </div>--> <div id="divinputfile"> <input name="file" type="file" size="30" id="filepc" onchange="document.getElementById('fakefilepc').value = this.value;"/> <div id="fakeinputfile"> <input name="fakefile" type="text" class="link_button" id="fakefilepc" /> </div> </div> <div id="captchaimage"><img id="captcha" src="/securimage/securimage_show.php" alt="CAPTCHA Image" /></div> <div><label for="email"><a style="text-decoration: none" href="#" onclick="document.getElementById('captcha').src = 'securimage/securimage_show.php?' + Math.random(); return false">New Captcha: </a></label> <input type="text" name="captcha_code" class="captcha_form" size="10" maxlength="6" /> </div> <button type="submit" value="submit" id="submit" ><img src="images/form2_33.png" /></button> <button type="reset" value="reset" id="reset" ><img src="images/form2_37.png" /></button> </form> </div> <div id="logo"></div> </div> </div> <?php } function validate_form() { $errors = array( ); // name is required if ($_POST['name'] == "") { $errors[ ] = 'Please enter your name.'; } if (! strlen(trim($_POST['email']))) { $errors[ ] = 'Please enter your Email.'; } if (! preg_match('/^[^@\s]+@([-a-z0-9]+\.)+[a-z]{2,}$/i', $_POST['email'])) { $errors[ ] = 'Please enter a valid e-mail address'; } $filename=$_FILES['file']['name']; //For size if($_FILES["file"]["size"]>1000000) //1 mb { $errors[ ] = "File size should be less than 1MB"; } // for extention $ext = end(explode('.', $filename)); if($ext=='doc' || $ext=='txt' || $ext=='pdf' || $ext=='docx' ) { echo "write the code to upload file"; $max_allowed_file_size = 1024; // size in KB $name_of_uploaded_file = basename($_FILES['file']['name']); //get the file extension of the file $type_of_uploaded_file = substr($name_of_uploaded_file, strrpos($name_of_uploaded_file, '.') + 1); $size_of_uploaded_file = $_FILES["file"]["size"]/1024;//size in KBs //copy the temp. uploaded file to uploads folder $upload_folder = 'upload/'; $path_of_uploaded_file = $upload_folder . $name_of_uploaded_file; $tmp_path = $_FILES["file"]["tmp_name"]; if(is_uploaded_file($tmp_path)) { if(!copy($tmp_path,$path_of_uploaded_file)){ echo 'error while copying the uploaded file'; die(); } } } else { $errors[ ] = "Only doc or pdf or txt file is allowed: $filename "; } return $errors; } function process_form() { $image = "http://www.visualrealityink.com/dev/clients/arzan/snell_form/images/email.png"; include_once('Mail.php'); include_once('Mail_Mime/mime.php'); $to = 'george@visualrealityink.com'; $text = $image . "<br />" . $values['name'] . "submitted a resume on our website. Please review the applications and contact the candidate if their resume is a fit for any open opportunities with the company. <br><br> Thank you. <br><br> SEI Team"; $message=new Mail_mime(); $message=setTXTBody($text); $message=addAttachment($path_of_uploaded_file); $body = $message->get(); $extraheaders = array("From"=>$formValues['email'], "Subject"=>$subject, "Reply-To"=>$formValues['email']); $headers = $message->headers($extraheaders); $mail = Mail::factory("mail"); $mail->send($to, $headers, $body); echo "email sent"; } ?> </body> </html>
  17. Haku thanks I appreciate it, thankfully this is not too difficult to undo at this point sense I am only on the first page. Thanks again
  18. Ok so for the first time I am attempting Absolute Positioning and I am finding it somewhat confusing. I have http://visualrealityink.com/clients/prostaffers.com/abs/ that I have been working on, and I have the first 3 sections(the navi, header, and color) areas displaying fine. However when you get to <div id="subcolormastercontainer"></div> things go a little strange. The three divs in "subcolormatercontainer" are displaying towards the top right below the navi behind the header image. Could someone please see if they could point me in the right direction to where my error may be? I have been working on this for two days LOL Thanks in adavance index.html <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Pro Staffers, LLC Employment Agency Lancaster SC 29720</title> <link rel="stylesheet" type="text/css" href="css/simple.css" /> <script language="javascript" type="text/javascript"> var newwindow; function poptastic(url) { newwindow=window.open(url,'name','height=600,width=400'); if (window.focus) {newwindow.focus()} } </script> </head> <body> <div id="sitecontainer"> <div id="navi1"></div> <div id="navi2"><a href="index.html">HOME</a></div> <div id="navi3"><a href="about.html">ABOUT</a></div> <div id="navi4"><a href="">DIRECTIONS</a></div> <div id="navi5"><a href="mailto:dplane@prostaffersllc.com">CONTACT</a></div> <div id="navi6"><a href="">APPLY</a></div> <div id="mast"> </div> <div id="colorcontainer"> <div id="color1"> d </div> <div id="color2"> d </div> <div id="color3"> d </div> </div> <div id="subcolormastcontainer"> <div id="subcolormasthead1"> d </div> <div id="subcolormasthead2"> d </div> <div id="subcolormasthead3"> d </div> </div> <div id="subcolorcontentcontainer"> <div id="subcolorcontent1"> </div> <div id="subcolorcontent2"> </div> <div id="subcolorcontent3"> </div> </div> <div id="footer"> </div> </div> </body> </html> simple.css /* CSS Document */ body{margin:0px 0px 0px 0px; padding:0px 0px 0px 0px;} div#sitecontainer{width:949px; margin-left:auto; margin-right:auto; padding:0px;} div#navicontainer{height:44px;padding:0px; text-align:center; color:#FFF; line-height:40px;} a{color:#FFF;} div#navi1{height: 44px; width: 257px; background-image:url(../images/navi1.png); margin:0px; float:left; overflow:hidden; line-height:40px; text-align:center;} div#navi2{height: 44px; width: 138px; background-image:url(../images/navi2.png); margin:0px; float:left; overflow:hidden; line-height:40px; text-align:center;} div#navi3{height: 44px; width: 139px; background-image:url(../images/navi3.png); margin:0px; float:left; overflow:hidden; line-height:40px; text-align:center;} div#navi4{height: 44px; width: 138px; background-image:url(../images/navi4.png); margin:0px; float:left; overflow:hidden; line-height:40px; text-align:center;} div#navi5{height: 44px; width: 142px; background-image:url(../images/navi5.png); margin:0px; float:left; overflow:hidden; line-height:40px; text-align:center;} div#navi6{height: 44px; width: 135px; background-image:url(../images/navi6.png); margin:0px; float:left; overflow:hidden; line-height:40px; text-align:center;} div#mast{height:189px; width:949px; background:url(../images/mast.png) no-repeat; position:absolute; top:45px;} div#colorcontainer{height:150px; width:949px; position:absolute; top:234px; margin-left:auto; margin-right:auto;} div#color1{height:150px; width:316px; background-image:url(../images/green.png); display:inline; margin:0px; float:left; overflow:hidden;} div#color2{height:150px; width:316px; background-image:url(../images/orange.png); display:inline; margin:0px; float:left; overflow:hidden;} div#color3{height:150px; width:317px; background-image:url(../images/blue.png); display:inline; margin:0px; float:left; overflow:hidden;} div#subcolormastercontainer{height:47px; width:950px; top:383px; position:absolute; margin-left:auto; margin-right:auto; overflow:hidden;} div#subcolormasthead1{ height:47px; width:317px; background-image:url(../images/subcolormasthead1.png); display:inline; margin:0px; float:left; overflow:hidden;} div#subcolormasthead2{ height:47px; width:316px; background-image:url(../images/subcolormasthead2.png); display:inline; margin:0px; float:left; overflow:hidden;} div#subcolormasthead3{ height:47px; width:316px; background-image:url(../images/subcolormasthead3.png); display:inline; margin:0px; float:left; overflow:hidden;} div#subcolorcontentcontainer{} div#subcolorcontent1{} div#subcolorcontent2{} div#subcolorcontent3{} div#footer{}
  19. Ok so I found the solution or at least the solution that worked for me other than I receive 2 emails from one submission of the form. However the header issue was in fact because I was trying to send html and some applications remove the custom headers by default ie. MS Outlook, and many others. So I corrected this issue by removing all html code from the message and used \n for a carriage return. Below is the code I am using now. Once I find a fix for the duplicate emails I will post that solution as well. Thanks again for your time and help. // recipients $to = "******@********.com"; // subject $subject = "Jobs Form Submission!"; // message $message =" Title: " . $job_title . "\n Company: " . $job_company . "\n Introduction: " . $job_intro . "\n Description: " . $job_description . "\n Required Qualifications: " . $job_req_qualifi . "\n Preferred Qualifications: " . $job_preerred_qualifi . "\n Contact Name: " . $job_contact_name . "\n Contact Company: " . $job_contact_company . "\n Contact E-mail: " . $job_contact_email . "\n Contact Phone: " . $job_contact_phone . "\n Contact Fax: " . $job_contact_fax . "\n "; // To send HTML mail, the Content-type header must be set $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n"; // Additional headers $headers .= "From: " . $job_contact_email ."\r\n"; $headers .= "Reply-To: " . $job_contact_email . " \r\n"; // Mail it mail($to, $subject, $message, $headers);
  20. Are you wanting to change the value of a variable before something is submitted? I am not really understanding what you are asking. Not being dense but need to know what you are trying to apply this to better help you. Thanks TGWSE_GY
  21. Thanks Pikachu2000 that worked in getting the contents of the variables into the email itself but the HTML tags are still showing up rather than formatting the email. Any ideas of why that would be happening? Thanks again!
  22. <a href="index.php?section=home&myvariable=newvalue">CLICK ME</a>
  23. OK so I am trying to send a email with the results of a submitted form to a specified email address. However when the email is received the data is not displayed rather the variable names are. See code and resulting email address below. // custom route code //Send Email // recipients $to = '********@*********.com'; // subject $subject = 'Jobs Form Submission!'; // message $message = ' <html> <head> <title>Jobs Form Submission!</title> </head> <body> Title: $job_title<br /> Company: $job_company<br /> Introduction: $job_intro <br /> Description: $job_description <br /> Required Qualifications: $job_req_qualifi <br /> Preferred Qualifications: $job_preerred_qualifi <br /> Contact Name: $job_contact_name <br /> Contact Company: $job_contact_company <br /> Contact E-mail: $job_contact_email <br /> Contact Phone: $job_contact_phone <br /> Contact Fax: $job_contact_fax <br /> </body> </html> '; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= 'To: ******** <********@*********.com>' . "\r\n"; $headers .= 'From: $job_contact_email <$job_contact_email>' . "\r\n"; $headers .= 'Cc:' . "\r\n"; $headers .= 'Bcc:' . "\r\n"; // Mail it mail($to, $subject, $message, $headers); Email Address: Any pointers would be great. Thanks in advance 0_o
  24. Wolphie: actually I am using a function it is calling secure_submit.php to validate the form for in-proper entries. Also removing them is not fixing the problem. ProjectFear: the code above connecting to mysql is not my code as it belongs to the developer that designed this system/site and now I am having to go through and fix his coding short comings. Thanks
  25. Lostvoices: LOL Nope hehehehe but I removed it anyways LOL
×
×
  • 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.