Jump to content

caminator

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by caminator

  1. [!--quoteo(post=353431:date=Mar 9 2006, 04:35 PM:name=Gaia)--][div class=\'quotetop\']QUOTE(Gaia @ Mar 9 2006, 04:35 PM) [snapback]353431[/snapback][/div][div class=\'quotemain\'][!--quotec--] The PHP mail() function is what you are looking for [a href=\"http://ca3.php.net/manual/en/ref.mail.php\" target=\"_blank\"]http://ca3.php.net/manual/en/ref.mail.php[/a] Just integrate the mail() function in your sendfeedback.php file and it will still display the message. [/quote] I appreciate the reply, but I'm way to much of a beginner to be able to follow it. I did get this much out of the link you sent me. Am I anywhere close to where I need to be? [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]<?php $to = 'cameron@caminator.com, blueair23@caminator.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> [/quote]
  2. I have an HTML form that is being used as a Contat Us form. I want it to email me the data. Can someone help with how to do that with PHP?? I have it redirecting to a site that says "thanks for contacting us"....and shows the data they entered. Can I set it up so it will email the contents AND still go to this other page? Here is my form code. Thanks! [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]<form action="http://www.caminator.com/contact/sendfeedback.php" name="Contact" method="POST"> <div align="center" style="font:Arial; font-size:16px;"> <input type="radio" name="type" id="Praise" value="Praise" checked="checked">Praise <input type="radio" name="type" id="Complaint" value="Complaint">Complaint <input type="radio" name="type" id="Problem" value="Problem">Problem <input type="radio" name="type" id="Suggestion" value="Suggestion">Suggestion </div> <div class="contact_form"> <table border="0" cellpadding="0" cellspacing="0" width="80%" id="AutoNumber5"> <tr> <td width="10%" align="right" valign="top"><font size="2">Name :</font></td> <td width="90%" valign="top">&nbsp;<input type="text" name="name" MAXLENGTH="25" size="40"></td> </tr> <tr> <td width="10%" align="right" valign="top"><font size="2">E-mail :</font></td> <td width="90%" valign="top">&nbsp;<input type="text" name="email" MAXLENGTH="40" size="40"></td> </tr> <tr> <td width="10%" align="right" valign="top"><font size="2">Subject :</font></td> <td width="90%" valign="top">&nbsp;<input type="text" name="subject" MAXLENGTH="50" size="40"></td> </tr> <tr> <td width="10%" align="right" valign="top" colspan="2">&nbsp;</td> </tr> <tr> <td width="10%" align="right" valign="top"><font size="2">Message :</font></td> <td width="90%" valign="top">&nbsp;<textarea cols="40" rows="6" name="message"></textarea></td> </tr> <tr> <td colspan="2"></td> </tr> <tr> <td width="20%" align="right" valign="top"></td> <td valign="top" width="30%">&nbsp;<input type="submit" value="Send Feedback">&nbsp;<input type="reset" value="Clear"></td> </tr> </table> </div> </form>[/quote]
  3. Thanks so much for the awesome reply. I will take a look at it either later tonight or tomrrow and see if I can figure out what you are talking about. Thanks again for all the detail. I'll keep ya posted on how it goes.
  4. [!--quoteo(post=352110:date=Mar 6 2006, 10:24 AM:name=Gaia)--][div class=\'quotetop\']QUOTE(Gaia @ Mar 6 2006, 10:24 AM) [snapback]352110[/snapback][/div][div class=\'quotemain\'][!--quotec--] Maybe put in something like HTTP_REFERER so that you can save where they came from and then send them back? [/quote] Do you mean it would look something like this then? [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]function poll() { global $POLLTBL, $CLASS, $HTTP_REFERER; $this->tbl = $POLLTBL; $this->poll_view_html = array(); $this->poll_result_html = array(); $this->options = array(); $this->options_text = array(); $this->poll_question = array(); $this->form_forward = ''; $this->template_set = ''; [/quote] just change the _SERVER_VARS to _REFERER;???
  5. Hi guys...newbie here. I have my site built with php and html. I have header.php and footer.php. These are includes in every page. Anyway, here is my problem. I have this poll on my site that I put on. My poll is part of footer.php. I want it to be included in every page so that is why I put it there. When I hit 'Vote' to submit my vote on the poll, the poll takes me to footer.php. I want it to go back to whatever page the person was viewing before they hit Vote. footer.php isn't a real "page", so when it forwards to it after pushing the Vote button, it loses all formatting and design. [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]function poll() { global $POLLTBL, $CLASS, $HTTP_SERVER_VARS; $this->tbl = $POLLTBL; $this->poll_view_html = array(); $this->poll_result_html = array(); $this->options = array(); $this->options_text = array(); $this->poll_question = array(); $this->form_forward = ''; $this->template_set = ''; [/quote] This is part of my code that I think needs changing from reading around, but Im not sure what to change. here is [a href=\"http://www.caminator.com\" target=\"_blank\"]My Webpage[/a]. Feel free to go and 'test' it and you will see waht I am talking about.
×
×
  • 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.