snipesh0tz Posted May 4, 2010 Share Posted May 4, 2010 Hello everyone, I am not sure on how to say this but basicly a site has a form that I repeatly need to fill in daily. You have an dropdown box with multi options. I always want to select value "239" and then fill in the textbox with the same text. How would I write a web based application on my website that select value "239" and fill in "blabla" and then click the submit button. Is this possible it all? It might be alot to ask so a pointing in the right way would be highly appriciated Link to comment https://forums.phpfreaks.com/topic/200664-how-to-fill-in-a-form-on-another-website/ Share on other sites More sharing options...
ChemicalBliss Posted May 4, 2010 Share Posted May 4, 2010 What your thinking of is impossible for PHP, But there is a way you can submit POST data to the forms ACTION target. If you know the form elements you can skip the form entirely and just pass the arguments. This is easiest with cURL. -cb- Link to comment https://forums.phpfreaks.com/topic/200664-how-to-fill-in-a-form-on-another-website/#findComment-1053013 Share on other sites More sharing options...
siric Posted May 4, 2010 Share Posted May 4, 2010 Question is, if you always want to select the value "239" and always want to input the same text, why do you need a form?? Link to comment https://forums.phpfreaks.com/topic/200664-how-to-fill-in-a-form-on-another-website/#findComment-1053065 Share on other sites More sharing options...
snipesh0tz Posted May 4, 2010 Author Share Posted May 4, 2010 It's an advertising site. 239 is the value of the catogory I post under (paintings) and the text of the product I sell is always the same. Since I am selling more then 40 different products again I am tired of deleting the advertisment, copying the text, making a new advertisment and pasting the text again. There are applicaties for sale that do that for me but I don't want to pay hundred of dollars per year for them Link to comment https://forums.phpfreaks.com/topic/200664-how-to-fill-in-a-form-on-another-website/#findComment-1053091 Share on other sites More sharing options...
teamatomic Posted May 4, 2010 Share Posted May 4, 2010 http://curl.haxx.se/mail/curlphp-2007-12/0051.html Just use the curl stuff as an example, skip the cookie parts. It should take you 5 minutes to get it working. HTH Teamatomic Link to comment https://forums.phpfreaks.com/topic/200664-how-to-fill-in-a-form-on-another-website/#findComment-1053214 Share on other sites More sharing options...
roopurt18 Posted May 4, 2010 Share Posted May 4, 2010 You can do all of this with wget I believe. It's a free program on GNU/Linux and Win32 versions are available. Just read the documentation and make a BAT or bash script depending on your OS. Link to comment https://forums.phpfreaks.com/topic/200664-how-to-fill-in-a-form-on-another-website/#findComment-1053227 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.