[PHP] Re: Multi-Task on PHP by submitting a form!
: In the mail.php, i was thinking to add another process just after the mail : process had finish, which will insert the data from the from to : mysql_database. You could include(); the file that adds it to the database. I know what you're getting at, I do it myself. «dc» -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Multi-Task on PHP by submitting a form!
you're there already. have an if statement on mail.php: if (isset($posted_info)) { // send mail here // do db insert here } // end of if Steve "Jack" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Dear all > I was trying to get a user input form to insert to a mysql_database and > e-mail to me! > Is it possible to make php perform two task in one single submit button? > > The form will post the input --> mail.php. > > In the mail.php, i was thinking to add another process just after the mail > process had finish, which will insert the data from the from to > mysql_database. > > Thx > Jack > [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]