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. Quote Link to comment Share on other sites More sharing options...
teng84 Posted October 31, 2007 Share Posted October 31, 2007 question? Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
HappyPandaFace Posted November 3, 2007 Author Share Posted November 3, 2007 Can anybody do this? Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
HappyPandaFace Posted November 6, 2007 Author Share Posted November 6, 2007 K sorry I'll try it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.