Jump to content

iconicCreator

Members
  • Posts

    84
  • Joined

  • Last visited

    Never

Everything posted by iconicCreator

  1. I'm not trying to be arrogant but the truth is I'm very new to PHP, infact, after months of reading dead end books, I was finally able to create this little form script. Because of my ignorance to PHP, I want to make sure I'm learning thins the right way. However, I really appreciate you taking the time to help me learn PHP. What I am trying to do is add style to the confirmation page or string. Eg: wrapped the entire message in a div tag but apply individual style to the senders name if I needed to. But I will try your suggestions and let you know how this work. IC
  2. I really appreciate your help and effort but the HTML tags you are refering to are "deprecated" meaning they are no longer recommended by the W3C and may create problems with XHTML. I do not want to use font tags, I would rather use CSS to style the echo strings, this way I can completely separate the syle from the content. IC
  3. Basically I want to be able to wrapped the confirmation is a div tag. Then I can center the message, applied a background image and so on. like this: <div id="confirmation">echo srting blah blah blah</div> So from your example, I have to use only single quote around the div id name? **Also, how would I do this if I want to apply a different style to the senders name using something like this: <p class="sendersName">Wyane</p> this way I can style the div tag and the senders name individually. How would all this go in a line of code? Thanks a million IC
  4. Hey, thanks very, very much. It worked. I would like to use CSS and style the echo string, like putting the message is a div tag and then styling it. Any ideas? IC
  5. Hello everyone, New to PHP and just starting to learn things. I have set up an e-mail, very basic, below is the code. Everything appears to be working but I'm still learning. I need the echo confirmation message that appears after the e-mail is submitted to contained the mail senders name. Like this: Thanks Mariah for taking the time to participate in the evaluation, we will contact you within 24 hours. Instead of this: Thanks for taking the time to participate in the evaluation, we will contact you within 24 hours. Also, can anyone please tell me how I can style the echo message using html tags? Like how do I use the <p> or <h1> tag to format the echo confirmation message? I'm am an advance CSS/Xhtml user but I don't know how to applied these tags within PHP echo. Any ideas? Thanks everyone. - IC <?php //FORM INPUT COLLECTION $firstName = $_POST['firstName']; $lastName = $_POST['lastName']; $email = $_POST['email']; $soupPreference = $_POST['soupPreference']; $howMany = $_POST['howMany']; $changes = $_POST['changes']; $messageComments = $_POST['messageComments']; //FORM PROCESSOR $to = 'mymail.com'; $subject = 'Canned soup evaluation report'; $msg = "First Name: $firstName\n\n" . "Last Name: $lastName\n\n" . "E-Mail: $email\n\n" . "Do you like canned soup? $soupPreference\n\n" . "How many canned soup do you eat in a day? $howMany\n\n" . "What changes or suggestions would you recommend: $changes\n\n" . "Comments: $messageComments"; mail($to, $subject, $msg, 'from:' . $email); echo 'Thanks for taking the time to participate in the evaluation, we will contact you within 24 hours.'; ?>
×
×
  • 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.