Jump to content

hemjesti

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

About hemjesti

  • Birthday 06/27/1990

Profile Information

  • Gender
    Female
  • Location
    Texas

hemjesti's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. thanks for the reply! ya know, i tried searching a hundred times - and it never returned anything. i downloaded the entire site to my local and was very unsuccessful. frustrated even. i'll look for one of those ide solutions. any suggestions on an application that does this? thanks again!
  2. hey there! i have a quick / silly question - if you're using an application to edit your php files, like say, Notepad++ - is there anything you can do, or add to that application that would show me all the files associated with the current php page i'm editing? For example, say i'm in main_index.php - and it uses includes for a header and footer and also links to an external style sheet - is there an application or editor that would show me that those three files are affiliated with main_index.php. I'm asking about this b/c it took me TWO DAYS to find a file associated with my footer so i could change the dang copyright date! Yes, i'm new to this stuff - but i'm tryin'!!
  3. I'll nar'post at DD again. I'm forever, a PHP Freak. You guys are going to have to roll with me and let me grow though! I'm not as smart as all you out there. My specialty is just breaking things. I'm sorry i cheated on my Freaks.
  4. Oh now, I was desperate! I was looking for any help at all!!! Watch my post at DD here in a second! Well, I'll do it now......... **jeopardy theme plays**.......... okay - this is what i wrote::: Thanks guys but I was helped by the phenom over at PHP Freaks. they were sooooo fast and helpful and didn't make me feel like the idiot i am when it comes to this stuff. Sorry for wasting your time. Hope I'm forgiven b/c i'm soooooooooooo greatful!!
  5. OMG!!! I LOOOOOOOOOVE YOU GUYS!!! I couldv'e never made that work on my own!!! I do have ONE more question - in the "From" in my inbox it says, "Win.One@p3nlhg150.shr.prod.phx3.secure" but in the code it says, "From" should be "Win One"? Any idea what that's about? How do I pay you guys?
  6. This is the code currently after adding the provided code. I'm sorry I wish I knew how to code and I wouldn't be pestering anyone. <?php $EmailFrom = "Win One"; $EmailTo = "sales@capsonewire.com"; $Subject = "Registration"; $Name = Trim(stripslashes($_POST['Name'])); $Tel = Trim(stripslashes($_POST['Tel'])); $Email = Trim(stripslashes($_POST['Email'])); $Phone = Trim(stripslashes($_POST['Phone'])); $Message = Trim(stripslashes($_POST['Message'])); // validation $validationOK=true; if (!$validationOK) { print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">"; exit; } // prepare email body text $Body = ""; $Body .= "Name: "; $Body .= $Name; $Body .= "\n"; //$Body .= "City: "; //$Body .= $City; //$Body .= "\n"; $Body .= "Email: "; $Body .= $Email; $Body .= "\n"; $Body .= "Phone: "; $Body .= $Phone; $Body .= "\n"; $Body .= "Message: "; $Body .= $Message; $Body .= "\n"; // redirect to success page if ($success) { //Modify content for confirmation and send to user $message = "This is to confirm that the following message was sent to our sales department:\n\n" . $message; mail($Email, $Subject, $Body, "From: <$EmailFrom>"); //Redirect to thank you page print "<meta http-equiv=\"refresh\" content=\"0;URL=contactthanks.php\">"; } // redirect to success page if ($success){ print "<meta http-equiv=\"refresh\" content=\"0;URL=contactthanks.php\">"; } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">"; } ?>
  7. i'm looking at this stuff and the only thing i see that's dif is the first version has if success with else print - and the new copy has just if success ?? does that make a difference? or am i just being dumb?
  8. it's posting the error.htm page for some reason. I'm not sure if i am supposed to remove anything or just paste that other code in there? if i don't it looks like it's asking to 'print' two of the same page names? this is the error.htm copy - but i don't know how this is possible. the files are there. again, unless i'm pasting the code wrong. The page you tried to access does not exist on this server. This page may not exist due to the following reasons: 1. You are the owner of this web site and you have not uploaded (or incorrectly uploaded) your web site. For information on uploading your web site using FTP client software or web design software, click here for FTP Upload Information. 2. The URL that you have entered in your browser is incorrect. Please re-enter the URL and try again. 3. The Link that you clicked on incorrectly points to this page. Please contact the owner of this web site to inform them of this situation.
  9. sort of freaking out here. i've broken the form!
  10. i added the code you provided and i keep getting an error page??? totally lost here.
  11. awesome - so this i add the new:: // redirect to success page if ($success) { //Modify content for confirmation and send to user $message = "This is to confirm that the following message was sent to our sales department:\n\n" + $message; mail($Email, $Subject, $Body, "From: <$EmailFrom>"); //Redirect to thank you page print "<meta http-equiv=\"refresh\" content=\"0;URL=contactthanks.php\">"; } Does that mean that i now remove the info below this data - assuming i place it exactly where it is currently in the form code? REMOVE ??? ::: // redirect to success page if ($success){ print "<meta http-equiv=\"refresh\" content=\"0;URL=contactthanksskins.php\">"; } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">"; }
  12. i am not a coder by any means and my boss threw me under the bus to add an auto reply to this form. I've figured out that this is the code that the form uses to process - but now i have NO IDEA what to do. Can ANYONE help me with this? it's supposed to have instructions in the response and send a copy to us and the the submitter. THANKS SO MUCH IN ADVANCE!!! Here's the php form code: <?php $EmailFrom = "Win One"; $EmailTo = "sales@capsonewire.com"; $Subject = "Registration"; $Name = Trim(stripslashes($_POST['Name'])); $Tel = Trim(stripslashes($_POST['Tel'])); $Email = Trim(stripslashes($_POST['Email'])); $Phone = Trim(stripslashes($_POST['Phone'])); $Message = Trim(stripslashes($_POST['Message'])); // validation $validationOK=true; if (!$validationOK) { print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">"; exit; } // prepare email body text $Body = ""; $Body .= "Name: "; $Body .= $Name; $Body .= "\n"; $Body .= "Email: "; $Body .= $Email; $Body .= "\n"; $Body .= "Phone: "; $Body .= $Phone; $Body .= "\n"; $Body .= "Message: "; $Body .= $Message; $Body .= "\n"; // send email $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>"); // redirect to success page if ($success){ print "<meta http-equiv=\"refresh\" content=\"0;URL=contactthanks.php\">"; } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">"; } ?>
×
×
  • 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.