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? Link to comment https://forums.phpfreaks.com/topic/171055-send-form-information-using-php/ Share on other sites More sharing options...
MatthewJ Posted August 19, 2009 Share Posted August 19, 2009 session Link to comment https://forums.phpfreaks.com/topic/171055-send-form-information-using-php/#findComment-902154 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 Link to comment https://forums.phpfreaks.com/topic/171055-send-form-information-using-php/#findComment-902161 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 Link to comment https://forums.phpfreaks.com/topic/171055-send-form-information-using-php/#findComment-902174 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() Link to comment https://forums.phpfreaks.com/topic/171055-send-form-information-using-php/#findComment-902175 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.