HappyPandaFace Posted October 31, 2007 Share Posted October 31, 2007 I want to directly send post vars to a URL like using the <a href="http://google.com">google</a> except sending post data. I don't want there to be any forms or anything just that. Infact a redirect would be nice too. Link to comment https://forums.phpfreaks.com/topic/75448-sending-post-data/ Share on other sites More sharing options...
teng84 Posted October 31, 2007 Share Posted October 31, 2007 question? Link to comment https://forums.phpfreaks.com/topic/75448-sending-post-data/#findComment-381673 Share on other sites More sharing options...
GingerRobot Posted October 31, 2007 Share Posted October 31, 2007 So you want to post to an external form? Try curl Link to comment https://forums.phpfreaks.com/topic/75448-sending-post-data/#findComment-381743 Share on other sites More sharing options...
HappyPandaFace Posted November 2, 2007 Author Share Posted November 2, 2007 That looks complex and the problem I have, I think, could be solved with a simple method. In some php scripts they read POST data. Like this: $name = $HTTP_POST_VARS['name']; Usually I have been sending data to these pages through the use of <form> a HTML tag. <form method="post"> Username: <input type="text" name="login"> <br> Password: <input type="password" name="pass"> <br> <input type="submit" value="login"> </form> Now this code sends dynamic user-inputted POST data to the same page you were at. I want code that will load a new page and send static POST data to it. Link to comment https://forums.phpfreaks.com/topic/75448-sending-post-data/#findComment-383307 Share on other sites More sharing options...
HappyPandaFace Posted November 3, 2007 Author Share Posted November 3, 2007 Can anybody do this? Link to comment https://forums.phpfreaks.com/topic/75448-sending-post-data/#findComment-384501 Share on other sites More sharing options...
phpQuestioner Posted November 3, 2007 Share Posted November 3, 2007 how are you letting the user login without a form? Link to comment https://forums.phpfreaks.com/topic/75448-sending-post-data/#findComment-384504 Share on other sites More sharing options...
sKunKbad Posted November 4, 2007 Share Posted November 4, 2007 I have posted (multiple times) how to do this using cURL. Browse through my posts and find it. Link to comment https://forums.phpfreaks.com/topic/75448-sending-post-data/#findComment-384578 Share on other sites More sharing options...
HappyPandaFace Posted November 6, 2007 Author Share Posted November 6, 2007 K sorry I'll try it Link to comment https://forums.phpfreaks.com/topic/75448-sending-post-data/#findComment-385493 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.