• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

Autofilling a form on a webpage

I need to fill forms on different websites without write from the keyboard in the fields, but sending to this webpages information stored in a .txt file. Some ideas?
I have all the information in the .txt file.
I know what different forms need and I'd like to fill these forms not writing with the keyboard but exchanging data stored in the .txt file.
Roboform is an idea but unfortunately is only for personal data.
0
micba
Asked:
micba
  • 3
  • 3
2 Solutions
 
php-webdesignCommented:
use fread to read the file...

then maken sure all the values are seperated with a unique sign (like | )

then use explode to seprated all the values, and fill them into the form

<input value=<? echo $thevalue1; ?>

get it?
0
 
armoghanCommented:
you may try to use the GET method

i.e find the submiting page and redirect like
create a str like
var str = "www.yahoo.com?".<? echo $thevariable1name; ?>."=." <? echo $thevariable1value; ?>."&".<? echo $thevariable2name; ?>."=." <? echo $thevariable2value; ?>.

header('Location:" str);
0
 
micbaAuthor Commented:
Unfortunately in the website there is the POST method...
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
php-webdesignCommented:
the you do

echo $_POST['thevalue'];
0
 
armoghanCommented:
Make one your own page which onLoad do the submit thing using java script. and fill the variables in it using php. You can call the page from the above method as well

i.e.
pass the parameters to your page like
var str = "www.myhomesite.com/mypage.php?".<? echo $thevariable1name; ?>."=." <? echo $thevariable1value; ?>."&".<? echo $thevariable2name; ?>."=." <? echo $thevariable2value; ?>.

and this page "mypage.php" auto posts on load
0
 
php-webdesignCommented:
well... i think you can split the points... armoghan and me gave proffesional response. Both the other side is that there is no solution... although the author gave no response to the last feedback given.
0
 
armoghanCommented:
i agree :)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now