Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autofill using address 1

Status
Not open for further replies.

snootalope

IS-IT--Management
Jun 28, 2001
1,706
US
Hi there guys..

Here's my deal.. I got a web page here that all my users use on a regular basis.. The website doesn't allowing caching of credentials, so they have to enter three different sets of numbers each time they log in.. they all use the same ID's (company,user,password)

The id's are (this how they appear on the page):
Company ID
User ID
Password

The web page itself won't let me view it's source code, but I dl'd it localy and then I can view the source so I can see the names of the fields..

What I'm wondering, is there a way I can make this first page they go to, auto fill in the Company name and the User ID but NOT the password box?? Can this be done by tags I put in the address itself??

Like:
Anyone see where I'm going with this?? Specifying answers to their question while the page is loading..

Any help would be awsome guys!!! even if theres a better way of doing!!!

Snooter
_________________

"tis better to remain silent and be thought of as a fool..
then open your mouth and remove all doubt" Mark Twain

"I should of been a doctor.." Me
 
the only way to do that is if the form was written that way.

What I do to submit forms on sites I didn't write is to find the action and fields. create an htm file on my computer

<form name = &quot;name of form on page&quot; action = &quot;action of form on page&quot; method = &quot;method of form on page&quot;>
<input type = &quot;hidden&quot; name = &quot;username&quot; value = &quot;myUserName&quot;>
<input type = &quot;hidden&quot; name = &quot;password&quot; value = &quot;myPassword&quot;>
</form>
<a href = &quot;javascript: document.forms[0].submit();&quot;>login</a>
That will submit your form to the action page the real form would submit to.

yes my password is hardcoded on the page but its a page on my machine not on the intranet.

unless the page checks to see what the refferer is, it should work.

if it does check for a referer, and gives you an error, click back, then click your link again. I've found this to be a somewhat effectave workaround.

A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
- Douglas Adams
 
Excellent!! It's not working for me, but it's a start..

Do you have an email address where you can help me with this? I'd like to send you this source code and address to see what you think.. I'd rather not send someone's web page info through here.. this really doesn't seem to complex, but I havn't worked on this stuff for years!!

Thanks
snooter

&quot;tis better to remain silent and be thought of as a fool..
then open your mouth and remove all doubt&quot; Mark Twain

&quot;I should of been a doctor..&quot; Me
 
sure i'll try to give you a hand, i wont be at this email address for 2 more hours though, you may figure it out before then. :) webmaster at localwebdev.com replace &quot; at &quot; with &quot;@&quot;

A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
- Douglas Adams
 
for everyone else, the problem was solved just as explained above only including all hidden fields in the original form. and changing the hyperlink to an onload event.

A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
- Quote by Douglas Adams
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top