autofiling html forms (craigslist)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
onoffon
Forum Newbie
Posts: 1
Joined: Sat Apr 05, 2008 6:45 pm

autofiling html forms (craigslist)

Post 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.
blurredvision
Forum Newbie
Posts: 9
Joined: Fri Apr 04, 2008 5:34 am

Re: autofiling html forms (craigslist)

Post 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?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: autofiling html forms (craigslist)

Post 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
Post Reply