Big_J Posted July 22, 2007 Share Posted July 22, 2007 Hi. Is there any possible way to submit a form, either with get or post, to two different pages? So for example, I have <form method="post" action="mailer.php"> and I want to send the info to both mailer.php and mailer2.php? Is there a way to do it? Link to comment https://forums.phpfreaks.com/topic/61230-solved-submit-two-forms/ Share on other sites More sharing options...
redarrow Posted July 22, 2007 Share Posted July 22, 2007 lookup the mail function to send one email to client and one to ho ever Link to comment https://forums.phpfreaks.com/topic/61230-solved-submit-two-forms/#findComment-304620 Share on other sites More sharing options...
Big_J Posted July 22, 2007 Author Share Posted July 22, 2007 I know about mail, mailer was just an example, it's not a mailer. I want to send the data to a php page, which uses the data to do something else... Link to comment https://forums.phpfreaks.com/topic/61230-solved-submit-two-forms/#findComment-304623 Share on other sites More sharing options...
redarrow Posted July 22, 2007 Share Posted July 22, 2007 u might need javascript for that then. Link to comment https://forums.phpfreaks.com/topic/61230-solved-submit-two-forms/#findComment-304625 Share on other sites More sharing options...
Hypnos Posted July 22, 2007 Share Posted July 22, 2007 If the scripts are both on your server, than why wouldn't you just use include? I've made scripts before that take POST/GET data and use HTML and Javascript to automaticly submit a POST/GET form Onload. It does work, but it's a last resort. Link to comment https://forums.phpfreaks.com/topic/61230-solved-submit-two-forms/#findComment-304629 Share on other sites More sharing options...
Big_J Posted July 22, 2007 Author Share Posted July 22, 2007 If the scripts are both on your server, than why wouldn't you just use include? I don't know what you meant by include, but "both on your server" just solved it for me. I'll send the data to one, and from that one to the other. Thanks. Link to comment https://forums.phpfreaks.com/topic/61230-solved-submit-two-forms/#findComment-304631 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.