| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Sep 2007
Posts: 245
![]() | need help with contact form here is my code and i want to redirect my thank you page, how can i do that? thanks <?php // Contact subject $subject ="$subject"; // Details $message="$message"; // Mail of sender $mail_from="$email"; // From $header="from: $name <$mail_from>"; ????: NamePros.com http://www.namepros.com/programming/676617-need-help-with-contact-form.html // Enter your email address $to ='my@email.com'; $send_contact=mail($to,$subject,$message,$header); // Check, if message sent to your email // display message "We've recived your information" if($send_contact){ echo "www.mywebsite.com/thankyou"; } else { echo "ERROR"; } ?> |
| | |
| | #2 (permalink) |
| Forum Moderator ![]() Join Date: Aug 2006 Location: USA
Posts: 2,041
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Instead of the "echo" ... header("Location:www.mywebsite.com/thankyou"); Hopefully you're sanitizing those variables someplace earlier in the code?
__________________ Enlytend Solutions - Internet marketing and web development, specializing in local search optimization Was my advice helpful? Please consider a small donation to the National Canine Cancer Foundation - a tax deductible 501(c)(3)that directly funds cancer research |
| | |