This is a discussion on "e-mail screen problem" within the PHP Forum section. This forum, and the thread "e-mail screen problem are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
e-mail screen problem
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
e-mail screen problem
Hi
I have this question: The email screen will display the old email address and ask for the new email address. Once a student enters the new email address, it will automatically send an email to that address and take the student to a new screen that says that the email has been sent and display a link to go back to the main panel. I did it like this but it doesn't seem to work
thank you |
|
|
|
#2
|
|||
|
|||
|
Re: e-mail screen problem
might be going blind here .... but where is your mail() statement?
Also, I like to sepearate my forms from the processing ... that way you could use the header function at the bottom, as its very unlikley you'd have any output on a pure processing page. Last edited by Accurax; May 24th, 2007 at 08:24. |
|
#3
|
||||
|
||||
|
Re: e-mail screen problem
Quote:
You can use conditional headers fine, you just have to have common formatting modularized. That is, the biggest downside for including form handlers and forms on one page is, that if you do very much with the http headers (including session and cookie work), it sometimes deprives you of the ability to put common html in one place. Eventually the need to send header information before calling the http response may require you to repeat a section of html inside different conditional branches. This is, I think, solved fully by putting the repetitive matter in a class or include. I hope I am correct that php won't load the include unless and until it hits a valid conditional trigger. Well maybe I'd better ask this as a question. I am thinking that in example #1 the html "Tons of nonsense" is going to be loaded into memory twice, whereas in example #2 it will be loaded only once (for a single http request): #1
|
|
#4
|
|||
|
|||
|
Re: e-mail screen problem
I forgot to add e-mail function lol I will add it right now!
I think using include makes the script looks better thank you for replaying my friends |
![]() |
| Tags |
| change, email |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Screen resolution problem | jadebleh | Starting Out | 5 | Nov 21st, 2007 21:50 |
| problem with images when sending html page by mail | juanb007 | Web Page Design | 4 | Apr 29th, 2007 03:25 |
| mail() problem | asa_carter | PHP Forum | 4 | May 10th, 2006 21:22 |
| Problem with Screen Refreshing | Stumpy_uk | JavaScript Forum | 1 | Jan 10th, 2006 07:57 |