Jump to content
php.lv forumi

autofill forms


vladimirs

Recommended Posts

hmm..

 

isumaa.. draugiem.lv paroles laukam katreiz jaunu name generee un piebesijis katrei aizpildit tos laukus. nu uzgaaju ideju par bookmarku -

"java script:functionlogin(){document.forms[0].email.value=%22email@inbox.lv%22;

document.forms[0].elements[1].value=%22parole%22;document.forms[0].submit()}login();"

bet vajag uztaisit lapa.php kas ielaadee un aizpilda tos laukus. bez taada bookmarka. nezinu ka lai iedabuu draugiem.lv lapu savaa lapa.php .. meginaju ar include (negaaja), ar iframe, bet tad neaizpildas forma. lai aizpilditu liku:

<script>

document.forms[0].email.value=%22email.lv%22;

document.forms[0].elements[1].value=%22parole%22;

document.forms[0].submit()}login();

</script>

rezultaata nebij.. ko daru nepareizi un varbut savadak dariit?

Edited by vladimirs
Link to comment
Share on other sites

daudz un dažādus veidus tak var sadomāt.

 

1. ar html - copy/paste login formu, aizpildi formu html'ā un tālāk ver vaļā savu locālo/aizpildīto login formu

 

2. ar php - <iframe src="mans_php_scripts_kas_ar_regex_atrod_dragiem_lv_email_un_paroles_laukus_un_mak_tos_aizpildit_un_pec_tam_paradit_login_lapu.php" />

 

3. ar js - document.getElementById("email").value="mansemails"; form.submit();

 

4. ..

Link to comment
Share on other sites

×
×
  • Create New...