Jump to content

leet8845

Members
  • Posts

    17
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

leet8845's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Can anyone tell me how to send a automatic reply email,? once a sender sends my form with the code above. Any help appreicated Regards
  2. Just upload the file you want people to have to the root folder of your website using your FTP programme or your server control panel. Then create a link in your HTML editor as normal but put /yourfile.exe after the link. E.g Link: http://www.yourwebsite.com/yourfile.exe (or which ever file format your using) This will automatically generate a pop-up window asking to run or save when a user clicks the link/button/advert to download the file. Do you understand what I explained?
  3. Thanks that worked perfect for the subject Sorry for not being clear, what I mean is a automatic confirmation email to be sent to the person who sends the form. Is the possible to be done on my code? Many Thanks.
  4. Hi there, Currentley my PHP code doesnt post a subject line for the email it creates. I want a set subject e.g 'web site contact form01' to be posted with the email my code generates. Is thispossible, if so how? Another thing I wish to do is send a automatic confirmation reply email to the sender. Is this possible with my current code? Any help with either of these, is truly appreciated! My code; <?php // Check email is not empty if (! empty ($_POST['Email']) ) { // Check name is not empty if (! empty ($_POST['Name']) ) { // Getformdataandcreateemail $Email2="lee@mymail.com"; $email=$_POST['Email']; $name=stripslashes($_POST['Name']); $name2=stripslashes($_POST['Name2']); $date=stripslashes($_POST['Date']); $number=stripslashes($_POST['Number']); $location=stripslashes($_POST['Location']); $destination=stripslashes($_POST['Destination']); $requirements=stripslashes($_POST['Requirements']); $hear=stripslashes($_POST['Hear']); $other=stripslashes($_POST['Other']); $message= <<<EOD -------------------------------- Enquiry from your website -------------------------------- Name: $name Name2: $name2 EmailAddress: $email Number: $number Location: $location Destination: $destination Date: $date Requirements: $requirements Hear about us: $hear Other: $other -------------------------------- End of Message -------------------------------- EOD; //Sendemail @mail($Email2,$subject,$message, "From:$Email2"); header("Location: http://www.mysite.com/error.html"); } else { // No email was sent header("Location: http://www.mysite.com/error.html"); } } else { // No name was sent header("Location: http://www.mysite.com/error.html"); } ?> Thanks for lookin
  5. Hi all, I have built a web site in dreamweaver, and i have been validating my pages as I go along. Everthing has been fine so far however, I get a error for every text field on my contact form; 'the tag: "input" has an XML style closing syntax for an empty element even though version: "HTML4" is not an XML tag language. ' I'm not sure what the proper way for inserting a input tag is, so it validates. Any help appreciated Thanks for looking Here is my form; [code]]<form id="form1" name="form1" method="post" action=""> <table width="100%" cellpadding="3"> <tr> <td width="23%" class="style1">Name: </td> <td width="54%"><input type="text" name="textfield" /></td> <td width="23%"> </td> </tr> <tr> <td class="style1">Company Name: </td> <td><input type="text" name="textfield2" /></td> <td> </td> </tr> <tr> <td class="style1">Message:</td> <td><textarea name="textarea" rows="3" cols="21"></textarea></td> <td> </td> </tr> <tr> <td class="style1">Address Line 1: </td> <td><input type="text" name="textfield4" /></td> <td> </td> </tr> <tr> <td class="style1">Address Line 2 </td> <td><input type="text" name="textfield5" /></td> <td> </td> </tr> <tr> <td class="style1">Postcode:</td> <td><input type="text" name="textfield6" /></td> <td> </td> </tr> <tr> <td> </td> <td><input type="submit" name="Submit" value="Submit"></td> <td> </td> </tr> </table> </form> [/code]
  6. Hi, I am trying to create a valid W3c/CSS site which uses a drop down menu. I have created a valid page using Dreamweaver 8. I have used 2 CSS layers 1 for the menu and 1 layer for the text. Everything works fine until i added the text layer, now when I hover over the drop down menu items which have text underneath, the menu disappears as my cursor changes to the vertical text icon that looks like a big 'I'. The problem is the cursor is focusing on text instead of the menu, but I dont know how to stop this, I have change the order of the layers but I cant see the text if its the bottom layer. Is there anyway round this? without not having no text underneath where my drop down menu passes. Any help truly appreciated Regards Lee
  7. Thanks MadTechie Its working now!!! Your a star!!! Thanks again!!!! :)
  8. Hi, Thanks for that quick responce!. I added the that but I dont get a value posted through when the form is sent. $Email2="mail@mysite.co.uk"; $email=$_POST['Email']; $name=stripslashes($_POST['Name']); $name2=stripslashes($_POST['Name2']); $date=stripslashes($_POST['Date']); $number=stripslashes($_POST['Number']); $location=stripslashes($_POST['Location']); $destination=stripslashes($_POST['Destination']); $Requirements=stripslashes($_POST['Requirements']); $hearaboutus=stripslashes($_POST['Hearaboutus']); $message= <<<EOD -------------------------------- Enquiry from your website Movers Exchange Theme -------------------------------- Name: $name Name2: $Name2 EmailAddress: $email Number: $number Location: $location Destination: $destination Date: $date Requirements: $requirements Hearaboutus: $hearaboutus -------------------------------- End of Message -------------------------------- EOD; Here is my form in full, everything else is coming through expeect requirements. <form id="form1" action="formsend.php" method="post" name="form1"> <p align="center"><font face="Verdana" size="2"><label></label></font></p> <table cellspacing="8" cellpadding="8" summary="feedback form" border="0"> <tbody> <tr> <td><strong><font face="Verdana" size="2">First Name </font></strong><font color="#000000">*</font></td> <td><strong><font face="Verdana" size="2"><input id="Name" name="Name" type="text" /> </font></strong></td> </tr> <tr> <td><strong><font face="Verdana" size="2"><label>Last Name </label></font></strong><font color="#000000">*</font> </td> <td><strong><font face="Verdana" size="2"><input id="Name2" name="Name2" type="text" /> </font></strong></td> </tr> <tr> <td><strong><font face="Verdana" size="2"><label></label></font></strong><strong><font face="Verdana" size="2"><label>Phone Number </label></font></strong><font color="#000000">*</font></td> <td><strong><font face="Verdana" size="2"><input id="Number" name="Number" type="text" /> </font></strong></td> </tr> <tr> <td><strong><font face="Verdana" size="2"><label></label></font></strong><strong><font face="Verdana" size="2"><label>Email </label></font></strong><font color="#000000">*</font></td> <td><strong><font face="Verdana" size="2"><input id="Email" name="Email" type="text" /> </font></strong></td> </tr> <tr> <td><strong><font face="Verdana" size="2"> <label>Current Location: </label> </font></strong></td> <td><strong><font face="Verdana" size="2"><input id="Location" name="Location" type="text" /> </font></strong></td> </tr> <tr> <td><strong><font face="Verdana" size="2"> <label>Destination: </label> </font></strong></td> <td><strong><font face="Verdana" size="2"><input id="Destination" name="Destination" type="text" /> </font></strong></td> </tr> <tr> <td><strong><font face="Verdana" size="2"> <label>Approx. Date of Move:</label> </font></strong></td> <td><strong><font face="Verdana" size="2"><input id="Date" name="Date" type="text" /> </font></strong></td> </tr> <tr> <td><strong><font face="Verdana" size="2">Requirements:</font></strong></td> <td><select name="Requirements" id="Requirements"> <option>Full House Move</option> <option>Part House Move</option> <option>Select Personal Items</option> </select> </td> </tr> <tr> <td><strong><font face="Verdana" size="2">How did you get to hear about us?</font></strong></td> <td><strong><font face="Verdana" size="2"> <input id="Hearaboutus" name="Hearaboutus" type="text" /> </font></strong></td> </tr> </tbody> </table> <font size="1">* mandatory fields </font> <p align="left"><label for="Submit"></label></p> <p align="center"><input id="Submit" type="submit" name="Submit" value="Contact me about the Movers Exchange Scheme" /> </p> <p align="center"><label for="label"></label><input id="label" type="reset" name="Reset" value="Reset Form" /> </p> <p align="center"><span class="text"><strong><font style="BACKGROUND-COLOR: rgb(255,255,255)" color="#000080">Or, call now on +44 and ask about our ‘Movers Exchange Scheme’</font></strong></span></p> </form>
  9. Hi there, Can anyone tell em what PHP code I would need to add to my existing script. I have added a menu with 3 values to existng HTML form . The HTML Code for the menu is as follows: <select name="Requirements" id="Requirements"> <option>Full House Move</option> <option>Part House Move</option> <option>Select Personal Items</option> </select> My current PHP code: <?php // Check email is not empty if (! empty ($_POST['Email']) ) { // Check name is not empty if (! empty ($_POST['Name']) ) { // Check subject is not empty if (! empty ($_POST['Number']) ) { // Getformdataandcreateemail $Email2="me@xxxxxxxxx.co.uk"; $email=$_POST['Email']; $name=stripslashes($_POST['Name']); $name2=stripslashes($_POST['Name2']); $people=stripslashes($_POST['People']); $number=stripslashes($_POST['Number']); $location=stripslashes($_POST['Location']); $destination=stripslashes($_POST['Destination']); $message= <<<EOD -------------------------------- Enquiry from your website Movers Exchange Theme -------------------------------- Name: $name Name2: $Name2 EmailAddress: $email Number: $number Location: $location Destination: $destination People: $people -------------------------------- End of Message -------------------------------- EOD; //Sendemail @mail($Email2,$subject,$message, "From:$Email2"); header("Location: http://www.xxxxxxxxx.co.uk/index.php?page=moversr"); } else { // No email was sent header("Location: http://www.xxxxxxxxx./index.php?page=moverserror"); } } else { // No name was sent header("Location: http://www.xxxxxxxxx/index.php?page=moverserror"); } } else { // No number was sent header("Location: http://www.xxxxxxxxx.uk/index.php?page=moverserror"); } ?>
  10. Thanks for all your help. Nakor the code you gave me works great, I studied it and was able to add the same for the other fields. Thanks very very much
  11. Hi there, I sometimes get blank emails from contact form on my site. It happens when users click submit by mistake. My exsiting code doesnt check the fields have any content before sending the form. I need to add some code to check that fields have been filled out on my form. Does anyone know if its possible to add anything to exsiting code below to do this. I'm mainly bothered that the fields just have some text, nothing more complex really. Here's my code: <?php // Getformdataandcreateemail $Email2="mail@mysite.co.uk"; $email=$_POST['Email']; $name=stripslashes($_POST['Name']); $subject=stripslashes($_POST['Subject']); $messagecont=stripslashes($_POST['Message']); $message= <<<EOD -------------------------------- Enquiry from your website -------------------------------- Name: $name Subject: $subject EmailAddress: $email Message: $messagecont -------------------------------- End of Message -------------------------------- EOD; //Sendemail @mail($Email2,$subject,$message, "From:$Email2"); header("Location:thankyou.html"); ?> any help truly appreciated
  12. Hi thanks for that but its still not working, have I made a mistake? <?php // Getformdataandcreateemail $Email2="mail@mywebsite.co.uk"; $email = $_POST['Email']; if(preg_match('/\A(?:^[a-z0-9!#$%&\'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&\'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$)\Z/i', $email )) { echo "email valid"; } $name=stripslashes($_POST['Name']); $subject=stripslashes($_POST['Subject']); $messagecont=stripslashes($_POST['Message']); $message= <<<EOD -------------------------------- Enquiry from your website -------------------------------- Name: $name Subject: $subject EmailAddress: $email Message: $messagecont -------------------------------- End of Message -------------------------------- EOD; //Sendemail @mail($Email2,$subject,$message, "From:$Email2"); header("Location:thankyou.html"); ?>
  13. Hey thanks for that, just a couple of Q's: Any clues where I paste this into my code?, also do i change the email address? Again thanks
  14. oh yeah, im a total noob so simple explanations(if possible) greatly appreciated!!!!
×
×
  • 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.