Answered
<?php mail.. position question
Fairly standard question that I have noticed lots of .asp
comments on forum.
I have a registration form that inserts a record and then re-directs to a register success page.
I also want the registersuccess page (or alternatively form page) to automatically send an e-mail to me, including certain information entered into the form fields - namely the unique identifier (email address). This I can set as a hyperlink to allow me to connect directly to that record on-line.
I've sussed that this is the line I want to use in the registersuccess page:
<?php mail ("me@work.co.uk", "There is a new Site Registration", $email);?>
Call me stupid but I cannot work out how to propogate "$email" from a form field variable in the previous page if no information is being passed from the previous page.
I have tried to include ?EMAIL=<?php echo $POST_VARS['emailtextfield'];?> into the redirection address when the form is submitted but I get an error.
I am now trying to find out where I can put my "mail" code in the first form page but am having great difficulty as it is now complicated by form checks and duplicate checks.
Can anyone help?
I have a registration form that inserts a record and then re-directs to a register success page.
I also want the registersuccess page (or alternatively form page) to automatically send an e-mail to me, including certain information entered into the form fields - namely the unique identifier (email address). This I can set as a hyperlink to allow me to connect directly to that record on-line.
I've sussed that this is the line I want to use in the registersuccess page:
<?php mail ("me@work.co.uk", "There is a new Site Registration", $email);?>
Call me stupid but I cannot work out how to propogate "$email" from a form field variable in the previous page if no information is being passed from the previous page.
I have tried to include ?EMAIL=<?php echo $POST_VARS['emailtextfield'];?> into the redirection address when the form is submitted but I get an error.
I am now trying to find out where I can put my "mail" code in the first form page but am having great difficulty as it is now complicated by form checks and duplicate checks.
Can anyone help?
