hi I have this form for specific website and I want to post my values with curl <form name=quickreply action="" method=post> <input type=button onclick='submitQuickReplyForm(1)' value="Submit the value"> <textarea name=msg ></textarea> </form> Code (markup): here is what i did (highlighted part): so is there anything wrong with my code? what do i need to input for the button exactly?
First, why do you want to use curl? Second, I think your mixing Javascript and php. $curlPost is a php variable and submitQuickReplyForm(1) is a Javascript function. I don't think you're going to pass the correct information through curl.
i think your trying to integrate js func to php string then call it into a php function. what are you doing exactly?
to be more clear, 1st I'm using CURL coz I want to post some replies on my forum.. 2nd, from what u're saying I understand that I cannot use curl to post the data of js button? so that means its impossible? or i need to add correct info? thanx for ur help
how to do this? means how can I integrate that function with php? can u give me an example or a guide?