simulating a submit button

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
shile
Forum Newbie
Posts: 15
Joined: Thu Oct 04, 2012 6:45 pm

simulating a submit button

Post by shile »

i want to make a script that will simulate submit button function if a certain condition is satisfied,i researched a bit and i found that i need to do it with php's curl functions...i sniffed what submit button does and what fields it produces,here is a picture of the sniffed submit button...can you help me make a curl script?

Image
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: simulating a submit button

Post by requinix »

That last field, with the random letters and numbers, makes things a little harder. What site is this? Surely there's an easier way.
shile
Forum Newbie
Posts: 15
Joined: Thu Oct 04, 2012 6:45 pm

Re: simulating a submit button

Post by shile »

is the last field a cookie?This is a site that i am making,its a calendar that allows you to make appointments...
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: simulating a submit button

Post by requinix »

It's your own site? Then why do you have to scrape it? Some code generates that form so look at the code and copy the parts of it that do what you want...
Post Reply