Page 1 of 1

autofiling html forms (craigslist)

Posted: Sat Apr 05, 2008 6:54 pm
by onoffon
howdy,

I was wanting to write a front end in php for posting to craigslist. I wont be spamming and my intentions are within the terms of service and general good taste.

Perhaps someone has an idea of how i might start this? The link to the page to post to is static (ie: https://post.craigslist.org/hmb/C/ats/none/x) but the html form field names and the name of the action are generated randomly every time one goes to the page.

A good first step would be just to automatically populate the fields of the html form. "automatically populate the fields of an html form" doesn't do me so well in a google search, so perhaps someone knows at least some keywords to get me on the research road.

Re: autofiling html forms (craigslist)

Posted: Sat Apr 05, 2008 10:30 pm
by blurredvision
I'm a complete noob at PHP, so forgive me if this is a stupid question. But can you even do something like this with a server-side scripting program? Wouldn't javascript or something be better suited for this task?

Re: autofiling html forms (craigslist)

Posted: Sun Apr 06, 2008 8:26 am
by John Cartwright
You don't literally want to "populate" the form with values, you simply want to make a POST request with the said values.

Take a look at cURL