NOOB-DUDE Posted June 24, 2008 Share Posted June 24, 2008 hi guys i have implemented a html form on the following page www.aquablu.org/contact.html i am trying to create a php file to send the data from the form to the following addresss [email protected] (validation is not required just that the info is sent) once submited the page will go to thanks.html. can anyone help me with their programing knowledge in return for a bit of design work ? I am completely stumped. thanks NOOB Quote Link to comment https://forums.phpfreaks.com/topic/111713-designer-needs-help-will-design-in-return/ Share on other sites More sharing options...
wildteen88 Posted June 24, 2008 Share Posted June 24, 2008 Look in to sending emails with the mail() function. As for processing form data there are many tutorials on using $_GET/$_POST variables. Quote Link to comment https://forums.phpfreaks.com/topic/111713-designer-needs-help-will-design-in-return/#findComment-573448 Share on other sites More sharing options...
discomatt Posted June 24, 2008 Share Posted June 24, 2008 If you want coding done for you, check out the Freelance section Quote Link to comment https://forums.phpfreaks.com/topic/111713-designer-needs-help-will-design-in-return/#findComment-573455 Share on other sites More sharing options...
NOOB-DUDE Posted June 24, 2008 Author Share Posted June 24, 2008 That sounds like a plan... Quote Link to comment https://forums.phpfreaks.com/topic/111713-designer-needs-help-will-design-in-return/#findComment-573459 Share on other sites More sharing options...
DeanWhitehouse Posted June 24, 2008 Share Posted June 24, 2008 just a side note, i am pretty sure you did not design the site as i have seen that CSS template before, so i wouldn't offer designing work when you just use free internet code. Quote Link to comment https://forums.phpfreaks.com/topic/111713-designer-needs-help-will-design-in-return/#findComment-573470 Share on other sites More sharing options...
NOOB-DUDE Posted June 24, 2008 Author Share Posted June 24, 2008 Hi Blade280891, i think you'll find that the css i created by a WYSIWYG program. I design - i.e in photoshop and then let the programm write the code (more to the point why i need help with such things). I think remarks like that are best sent privately, at least that is until you know for sure what you are talking about. Comments like that can be unhelpfull to a new person on these forums. regards NOOB Quote Link to comment https://forums.phpfreaks.com/topic/111713-designer-needs-help-will-design-in-return/#findComment-573516 Share on other sites More sharing options...
NOOB-DUDE Posted June 24, 2008 Author Share Posted June 24, 2008 this is probably completely wrong but this is how far i got with the help of dannyb785 (thanks danny i probably doen it wrong mate i know) Can any one help ? <?php $body .= "Name: $_POST[name]nn"; $body .= "Email: $_POSTnn"; $body.= "Message: $_POST[message]nn"; $body.= "Telephone Number: $_POST[message]nn"; $body.= "Your Website: $_POST[message]nn"; $body.= "How did you find us: $_POST[message]nn"; $body.= "What can we do for you: $_POST[message]nn"; $header = "From: [email protected]"; $email_address = "[email protected]"; and the subject. $email_subject = "New message from the website!"; if (mail($email_address, $email_subject, $email_body, $header)) header("Location: thanks.html"); else header("Location: error.html"); exit; ?> Quote Link to comment https://forums.phpfreaks.com/topic/111713-designer-needs-help-will-design-in-return/#findComment-573524 Share on other sites More sharing options...
NOOB-DUDE Posted June 24, 2008 Author Share Posted June 24, 2008 im receiving the emails but they are blank ??? in which part of this string do i need to associate with the form here is one such string $body .= "Email: $_POSTnn"; and here is the first part of the code for the form <ul > <li id="li_1" > <label class="description" for="element_1">Name </label> <span> <input id="element_1_1" name= "element_1_1" class="element text" maxlength="255" size="8" value=""/> <label>First</label> </span> <span> Please advise Quote Link to comment https://forums.phpfreaks.com/topic/111713-designer-needs-help-will-design-in-return/#findComment-573537 Share on other sites More sharing options...
wildteen88 Posted June 25, 2008 Share Posted June 25, 2008 When using the $_POST vars, you place the name of the form field within the square brackets (wrapped in quotes). So the following variable $_POST['email'] will refer to a form field named email. So retrieve the value from the form field called element_1_1 you'd use $_POST['element_1_1'] Quote Link to comment https://forums.phpfreaks.com/topic/111713-designer-needs-help-will-design-in-return/#findComment-574331 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.