Hyaku_ Posted January 16, 2007 Share Posted January 16, 2007 Hi!Is it posible to pass information by PHP to another form, without user pressing submit button. For example user opens page, submit.php and submit.php posts form data to submit2.php without requiring user to click submit button? Thank you! Link to comment https://forums.phpfreaks.com/topic/34448-php-form-post-posible/ Share on other sites More sharing options...
AbydosGater Posted January 16, 2007 Share Posted January 16, 2007 This is not possible without the user clicking submit but you could always have something like...[code]Sumbit.php********<?php$submittedinformation = array($_POST);//Now we have the information saved in an array.. lets send the user to a new page..echo "<META HTTP-EQUIV=\"refresh\" CONTENT=\"0; URL=submit2.php?information=$submittedinformation\">";//Then in the submit2.php you just use a GET to get the information in the url and use it!?>[/code]Hope this helps.-Andy Link to comment https://forums.phpfreaks.com/topic/34448-php-form-post-posible/#findComment-162214 Share on other sites More sharing options...
Hyaku_ Posted January 16, 2007 Author Share Posted January 16, 2007 Thanks, that works for me!! ;) Link to comment https://forums.phpfreaks.com/topic/34448-php-form-post-posible/#findComment-162216 Share on other sites More sharing options...
AbydosGater Posted January 16, 2007 Share Posted January 16, 2007 :) Glad to help Link to comment https://forums.phpfreaks.com/topic/34448-php-form-post-posible/#findComment-162245 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.