need help, newbie to php want to implement form.
Posted: Wed Mar 28, 2007 11:33 am
hello,
i have a 3 form in my site in different pages, let's say page1.php, page2.php and page3.php.
the form method is set to post, and action is set to processform.php
what i would like to ask here (coding the processform.php)
since the form is basically similar (sending an email but using fixed different destination).
1. how i detect from which page processform.php invoked (page1.php, page2.php, or page3.php) ?
so i can use if statement to process send email to different email address for each page.
2. how do i redirect and use "post" or "get" method back from processform.php to invoker page? so i can return an error message or successful message. (or maybe in php there is common technique to applying my needs here?)
thank you , please help.
i have a 3 form in my site in different pages, let's say page1.php, page2.php and page3.php.
the form method is set to post, and action is set to processform.php
what i would like to ask here (coding the processform.php)
since the form is basically similar (sending an email but using fixed different destination).
1. how i detect from which page processform.php invoked (page1.php, page2.php, or page3.php) ?
so i can use if statement to process send email to different email address for each page.
2. how do i redirect and use "post" or "get" method back from processform.php to invoker page? so i can return an error message or successful message. (or maybe in php there is common technique to applying my needs here?)
thank you , please help.