En cours

A script that will log in to a website, enter data & submit

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="[url removed, login to view]" 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>&#3648;&#3605;&#3636;&#3617;&#3648;&#3591;&#3636;&#3609; HAPPY DTAC (3.5%)</strong></td>

</tr>

<tr>

<td width="84" align="right" valign="middle" class="FontMenu">&#3648;&#3610;&#3629;&#3619;&#3660;&#3617;&#3639;&#3629;&#3606;&#3639;&#3629;</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() {

[url removed, login to view] = function(id) {

[url removed, login to view](mkSerValObjDtac).value = id;

}

if ( [url removed, login to view] )

[url removed, login to view]("");

if ( [url removed, login to view] < 1 && [url removed, login to view] )

return ;

return "include/[url removed, login to view]" + [url removed, login to view];

});

}

// &#3585;&#3634;&#3619;&#3651;&#3594;&#3657;&#3591;&#3634;&#3609;

// make_autocom(" id &#3586;&#3629;&#3591; input &#3605;&#3633;&#3623;&#3607;&#3637;&#3656;&#3605;&#3657;&#3629;&#3591;&#3585;&#3634;&#3619;&#3585;&#3635;&#3627;&#3609;&#3604; "," id &#3586;&#3629;&#3591; input &#3605;&#3633;&#3623;&#3607;&#3637;&#3656;&#3605;&#3657;&#3629;&#3591;&#3585;&#3634;&#3619;&#3619;&#3633;&#3610;&#3588;&#3656;&#3634;");

make_autocomDtac("mobliedtac","h_dtac");

</script>

<input type="checkbox" name="CBdtac" id="CBdtac">

&#3594;&#3656;&#3623;&#3618;&#3592;&#3635;</td>

</tr>

</table></td>

</tr>

<tr>

<td align="right" valign="middle" class="FontMenu">&#3648;&#3605;&#3636;&#3617;&#3648;&#3591;&#3636;&#3609;</td>

<td align="left" valign="middle"><select name="paydtac" id="paydtac">

<option value="10" selected> 10 &#3610;&#3634;&#3607;</option>

<option value="20"> 20 &#3610;&#3634;&#3607;</option>

<option value="30"> 30 &#3610;&#3634;&#3607;</option>

<option value="40"> 40 &#3610;&#3634;&#3607;</option>

<option value="50"> 50 &#3610;&#3634;&#3607;</option>

<option value="60"> 60 &#3610;&#3634;&#3607;</option>

<option value="100"> 100 &#3610;&#3634;&#3607;</option>

<option value="200"> 200 &#3610;&#3634;&#3607;</option>

<option value="300"> 300 &#3610;&#3634;&#3607;</option>

<option value="500"> 500 &#3610;&#3634;&#3607;</option>

<option value="800"> 800 &#3610;&#3634;&#3607;</option>

</select>

<input type="submit" name="button2" id="button2" value="&#3648;&#3605;&#3636;&#3617;&#3648;&#3591;&#3636;&#3609;"></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.

[url removed, login to view]

Compétences : AJAX, Formulaires électroniques, Javascript, PHP, Web Scraping

Voir plus : script log website, php autocomplete, log into, microsoft website, log post, log in, enter data, data log, post form hidden, need option script, autocomplete select, javascript order function, php post form data, form hidden submit, script party php, website order form script, php run script, form post hidden, click hidden, script action, form hidden post value, php post hidden, option checkbox php, javascript select option, php form input data

Concernant l'employeur :
( 17 commentaires ) kewaskum, United States

N° du projet : #1621589

Décerné à :

MustafaSR

hello sir please check the PMB.

120 $ USD en 2 jours
(77 Commentaires)
5.8

3 freelance ont fait une offre moyenne de 83 $ pour ce travail

squeezy

Hello. I've done a lot of tasks similar to this one. So I can do it quite fast.

80 $ USD en 1 jour
(1 Commentaire)
2.8
tihal

Please check PMB. Thanks

50 $ USD en 2 jours
(0 Commentaires)
0.0