solarisuser Posted June 27, 2007 Share Posted June 27, 2007 Hi All, I am having a problem POSTing from a form using this.... <form method="post" action="page2.php?enabled=yes" enctype="multipart/form-data"> This parses an uploaded file, and the above works great if I just POST it to page2.php. But I really would like to get it to work like the above, due to the layout of the code. Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/57466-can-i-post-to-webpagephpsomethingsomethingelse/ Share on other sites More sharing options...
soycharliente Posted June 27, 2007 Share Posted June 27, 2007 Will creating a hidden field of name enabled and value true and just adding that to the POST array be too hard? Link to comment https://forums.phpfreaks.com/topic/57466-can-i-post-to-webpagephpsomethingsomethingelse/#findComment-284329 Share on other sites More sharing options...
solarisuser Posted June 27, 2007 Author Share Posted June 27, 2007 I did that, but I just wanted it to work the way I mentioned above =) Link to comment https://forums.phpfreaks.com/topic/57466-can-i-post-to-webpagephpsomethingsomethingelse/#findComment-284332 Share on other sites More sharing options...
redarrow Posted June 27, 2007 Share Posted June 27, 2007 when you use that post does the url have this page2.php?enabled=yes on the new page? Link to comment https://forums.phpfreaks.com/topic/57466-can-i-post-to-webpagephpsomethingsomethingelse/#findComment-284334 Share on other sites More sharing options...
per1os Posted June 27, 2007 Share Posted June 27, 2007 You have to either access the data via GET or REQUEST as you are doing post and get in one fell swoop. Link to comment https://forums.phpfreaks.com/topic/57466-can-i-post-to-webpagephpsomethingsomethingelse/#findComment-284346 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.