twistermc Posted February 14, 2007 Share Posted February 14, 2007 I need to POST a form to another URL without leaving my main site. Can fopen do this and, if so, can someone point me to a good tutorial. 99% of the stuff I'm finding deals with writing to a file and that's not what I want to do. Maybe I'm looking up the wrong function. Here is a quick layout~ - form.php (Main form and sends variables via POST - done) -- thanks.php (gets variables via POST - done) --- http://anothersite.com/thanks.php (needs to be sent variables via POST in the background - help) Link to comment https://forums.phpfreaks.com/topic/38483-will-fopen-post-a-form-if-so-how/ Share on other sites More sharing options...
kenrbnsn Posted February 14, 2007 Share Posted February 14, 2007 No, fopen will not do what you want to do, for that you need to look at the CURL functions. Ken Link to comment https://forums.phpfreaks.com/topic/38483-will-fopen-post-a-form-if-so-how/#findComment-184633 Share on other sites More sharing options...
twistermc Posted February 14, 2007 Author Share Posted February 14, 2007 Thanks. Finding the right function is key. If you know any good tutorials off the top of your head I'd take them. Or else I'll just do some Google/Yahoo searches. Link to comment https://forums.phpfreaks.com/topic/38483-will-fopen-post-a-form-if-so-how/#findComment-184716 Share on other sites More sharing options...
pkSML Posted February 14, 2007 Share Posted February 14, 2007 Here's some code that might help you --> http://code-bin.homedns.org/11 It shows how to post to an HTTPS server using fsockopen(). Link to comment https://forums.phpfreaks.com/topic/38483-will-fopen-post-a-form-if-so-how/#findComment-184794 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.