|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Go to another url after mail()
Hi
I am a real beginner to php, only installed scripts so far. I have made a very simple mail script that uses the standard mail() function to email form input to my email address (for feedback at my site), I would like to know what to add after that so that the user upon posting will go back to the index page. Right now, I just have it echoing to the screen Email Sent. Thanks in advance, Cindy |
|
#2
|
|||
|
|||
|
Ok - asign a scalar to the mail() funtion and use a if to check if there were errors or not - the function returns false on error, so you would write it like so:
PHP Code:
Also, you can shorten the above with a little advanced method, like so: PHP Code:
__________________
~ Joe Penn We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set? Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you. |
|
#3
|
|||
|
|||
|
Quote:
It would probably be best to have the last line read PHP Code:
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Go to another url after mail() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|