eacollie Posted August 19, 2009 Share Posted August 19, 2009 I have an html form that submits to a php file. I want the php file to send this information to another file (for email using formmail.php). I can pick up the form data, but how do I send this information to another file? Do I create another form, populate it with the data, and submit it? Or is there another way? Quote Link to comment Share on other sites More sharing options...
MatthewJ Posted August 19, 2009 Share Posted August 19, 2009 session Quote Link to comment Share on other sites More sharing options...
eacollie Posted August 19, 2009 Author Share Posted August 19, 2009 Thanks MatthewJ. I'm not very good with PHP, but here's what I'm trying to do: 1. User fills out html form and this submits to a php file. 2. PHP file collects form data and automatically sends this to formmail.php (which sends email). I then want to do other "stuff": give the user the option of paying by either printing out form data or redirecting to PayPal. So far, I've got the html form and I can pick up the form data in the php file. I just don't know how to send this information out to formmail.php for processing. Any help you can give this newbie would be really appreciated! Thanks Quote Link to comment Share on other sites More sharing options...
msinternet Posted August 19, 2009 Share Posted August 19, 2009 Hi, 1) you could use an include like include('file.php') then it will be like the scripts are combined. 2) use a session variable or get string then use header to load the other page after other stuff has happened. 3) use cURL. this will load a page in the background kindof like Ajax in JavaScript. 4) put the processing inthe other page in to a function and just call the function. Hope that helps. Martin Quote Link to comment Share on other sites More sharing options...
pengu Posted August 19, 2009 Share Posted August 19, 2009 Edit: Sorry misread the question, you could do this all on the one page. session() Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.