why will this script not submit the form - it does input data into the form - 
but not submit it. below is the script and then the html form.. thanks

#!/usr/bin/php
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_COOKIEFILE, "/temp/cookie.txt");
curl_setopt($ch, 
CURLOPT_URL,"http://192.168.10.10/?link=answer&l=c&qid=25AA98zRa";;);
curl_setopt ($ch, CURLOPT_POSTFIELDS, 
"link=answer&qid=25AA98zRa&.crumb=x88&textarea=here+ya+go&prev_ans_page=&e=0&sumbit1=Sumbit");
$result = curl_exec ($ch);
curl_close ($ch);
echo $result;
?>

/////////////////////////////// below is the HTML form 
\\\\\\\\\\\\\\\\\\\\\\\\\\\

<form action="/question/act;_lt=Aktsgb5HMZ0vBEUSHj_3I1YdzKIX;_lv=3" 
onsubmit="this.submit1.disabled=true;" method="post" name="template_form">
<input type="hidden" value="answer" name="link"/>
<input type="hidden" value="25AA98zRa" name="qid"/>
<input type="hidden" value="x88" name=".crumb"/>
<input type="hidden" value="" name="textarea"/>
<input type="hidden" value="" name="refer"/>
<input type="hidden" value="" name="prev_ans_page"/>
<input type="hidden" value="0" name="e"/>
<input class="button" type="submit" name="submit1" value="Submit"/>
</form>




      
____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to