A script that will log in to a website, enter data & submit
$30-250 USD
Concluído
Publicado há quase 12 anos
$30-250 USD
Pago na entrega
I need a script that would log into a web site, and do 4 things.
-choose the correct tab
-enter in a number
-choose an amount
-submit form
I have attached the page on which the script would act.
My website is on shared hosting in php.
This script would be run, from my site, when an order is successfully completed. The amount, number and provider variables would be passed from my site, to the script, and then run.
Here is an example of the form code on the 3rd party site page:
<form name="form1" method="post" action="[login to view URL]" onSubmit="submitForm(this);">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="3" bgcolor="#FFFFFF">
<tr class="FontThaiNoColor">
<td colspan="2" align="center" valign="middle"><strong>เติมเงิน HAPPY DTAC (3.5%)</strong></td>
</tr>
<tr>
<td width="84" align="right" valign="middle" class="FontMenu">เบอร์มือถือ</td>
<td width="248" align="left" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="FontThai">
<td>
<input name="mobliedtac" type="text" id="mobliedtac" size="15" maxlength="10">
<input name="h_dtac" type="hidden" id="h_dtac" value="" style="width:25">
<script type="text/javascript">
function make_autocomDtac(autoObj,showObj){
var mkAutoObjDtac=autoObj;
var mkSerValObjDtac=showObj;
new Autocomplete(mkAutoObjDtac, function() {
[login to view URL] = function(id) {
[login to view URL](mkSerValObjDtac).value = id;
}
if ( [login to view URL] )
[login to view URL]("");
if ( [login to view URL] < 1 && [login to view URL] )
return ;
return "include/[login to view URL]" + [login to view URL];
});
}
// การใช้งาน
// make_autocom(" id ของ input ตัวที่ต้องการกำหนด "," id ของ input ตัวที่ต้องการรับค่า");
make_autocomDtac("mobliedtac","h_dtac");
</script>
<input type="checkbox" name="CBdtac" id="CBdtac">
ช่วยจำ</td>
</tr>
</table></td>
</tr>
<tr>
<td align="right" valign="middle" class="FontMenu">เติมเงิน</td>
<td align="left" valign="middle"><select name="paydtac" id="paydtac">
<option value="10" selected> 10 บาท</option>
<option value="20"> 20 บาท</option>
<option value="30"> 30 บาท</option>
<option value="40"> 40 บาท</option>
<option value="50"> 50 บาท</option>
<option value="60"> 60 บาท</option>
<option value="100"> 100 บาท</option>
<option value="200"> 200 บาท</option>
<option value="300"> 300 บาท</option>
<option value="500"> 500 บาท</option>
<option value="800"> 800 บาท</option>
</select>
<input type="submit" name="button2" id="button2" value="เติมเงิน"></td>
</tr>
</table>
</form>
Something similar to what I need.
A script to log in to a website, parse the contents into objects, click some buttons and tick some checkboxes.
[login to view URL]