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

Trying to login to this site automatically so users of my site can browse imports available..

Im just trying to login to https://dn.e-gauc.com/english/01/02/010201.asp?t_UserID=V06991 automatically using and Iframe so users dont need to type in the userID V06991
0
Lucid245
Asked:
Lucid245
  • 3
  • 2
1 Solution
 
Michel PlungjanIT ExpertCommented:
<a href="https://dn.e-gauc.com/english/01/02/010201.asp"
onClick="window.iframe1.location=this.href+'?t_UserID=V06991'; return false">V06991</a>

<iframe name="iframe1"></iframe>

However the browser MAY not like the https in an http page


Alternative
 
<form><select name="userid">
<option value="V06991">V06991</option>
<option value="V06992">V06992</option>
</select>
</form>
<a href="https://dn.e-gauc.com/english/01/02/010201.asp"
onClick="window.iframe1.location=this.href+'?t_UserID='+document.forms[0].userid.options[document.forms[0].userid.selectedIndex].value'; return false">Login</a>

Open in new window

0
 
Michel PlungjanIT ExpertCommented:
PPS: Pure html:

<a href="https://dn.e-gauc.com/english/01/02/010201.asp?t_UserID=V06991"
target="iframe1">V06991</a>

<iframe name="iframe1"></iframe>
0
 
Lucid245Author Commented:
currently right now in theory when I use this link to open the page it should be posting that and logging me in, but its not taking it, gotta type it in and submit the form.. and they have a javascript action to post it.. I know other people go directly to this as a reference, just wasnt sure what they did..
0
 
Michel PlungjanIT ExpertCommented:
I do not see that anywhere  - googling for dn.e-gauc.com/english/01/02/010201.asp I only see sites that tell you to go to dn.e-gauc.com/english/01/02/010201.asp and type in a userid...

I even tried this:

<form target="iframe1"
action="https://dn.e-gauc.com/english/01/02/010201.asp" method="post">
<input type="text" name="t_UserID" value="V06991">
</form>

so unless you can show me a site that does auto login, I would say it is not possible

Michel
0
 
Lucid245Author Commented:
Thats cool bro, thanks for the help.. it could be that he was thinking of something else... technically it should work just doing a link to that like you said but its probably some background process that requires them to remain on their domain or something... Thanks for your help
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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