Solved

Autofilling a form on a webpage

Posted on 2004-09-29
10
196 Views
Last Modified: 2008-03-06
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
Comment
Question by:micba
  • 3
  • 3
10 Comments
 
LVL 5

Expert Comment

by:php-webdesign
ID: 12178279
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
 
LVL 18

Expert Comment

by:armoghan
ID: 12179522
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
 

Author Comment

by:micba
ID: 12274644
Unfortunately in the website there is the POST method...
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 5

Accepted Solution

by:
php-webdesign earned 250 total points
ID: 12276083
the you do

echo $_POST['thevalue'];
0
 
LVL 18

Assisted Solution

by:armoghan
armoghan earned 250 total points
ID: 12295188
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
 
LVL 5

Expert Comment

by:php-webdesign
ID: 12491957
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
 
LVL 18

Expert Comment

by:armoghan
ID: 12492478
i agree :)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to fix Datetime in MySQL? 4 48
how to access a remote mysql database with xampp 3 23
AJAX Wordpress Not Reading Variable 2 27
JQuery Search Filter 2 28
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question