Web Design Forum: Linking to another login - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Linking to another login Rate Topic: -----

#1 User is offline   gfxpixeldesigns 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 495
  • Joined: 29-October 07
  • Reputation: 1
  • Gender:Male
  • Location:United Kingdom, Mossley
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 30 July 2009 - 10:12 PM

Ive recently designed this link using creloaded, id now like to place a login page on there but NOT to login to creloaded but instead to login to link. So really i just want to be placing the icscontrol login on my creloaded design. How would i go about this do i need some sort of a bridge or to join the databases, is that necessary ? ive never done anything like this before so i havent got the slightest idea. Any help would be appreciated :)
0

#2 User is offline   chrisbailey 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 54
  • Joined: 07-April 09
  • Reputation: 1
  • Gender:Male
  • Location:Essex
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 30 July 2009 - 10:16 PM

Its been a while since ive done this but a while ago I did this for a client, you simply create the login name and password fields and place them onto your design, then set the form process as the login you want to use, in this case your ics login process.
0

#3 User is offline   gfxpixeldesigns 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 495
  • Joined: 29-October 07
  • Reputation: 1
  • Gender:Male
  • Location:United Kingdom, Mossley
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 30 July 2009 - 10:55 PM

Ok so say ive got my login form
<form method="post" action="index.php">
<input type="text" name="uname" size="20" maxlength="30" /><br/>
<input type="password" name="passwd" size="20" maxlength="30" /><br/>
<input type="submit" name="loginSubmit" value="Login" />
</form> 

how do i set this to process as the ics login ? Do i need to create a new database or will this method use ics's database ?
Sorry ive really never done anything with login forms before.
0

#4 User is offline   irn3rd 

  • Expert
  • PipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 512
  • Joined: 13-July 08
  • Reputation: 3
  • Gender:Male
  • Location:UK
  • Experience:Beginner
  • Area of Expertise:I'm Learning

Posted 30 July 2009 - 10:55 PM

View Postchrisbailey, on 30 July 2009 - 10:16 PM, said:

Its been a while since ive done this but a while ago I did this for a client, you simply create the login name and password fields and place them onto your design, then set the form process as the login you want to use, in this case your ics login process.

Wouldnt you just do it by the form action tag? like this

<form action="Http://www.site.com/login.php">
<!--Codehere-->
</form>


But just make a seperate function or header section in the php so it redirects back to the site you wish to use the long.
Then when the user logouts out jsut destroy the session via the script on the server which you used to log in?

Just an idea of how i would try and do it.

Ben
0

#5 User is offline   gfxpixeldesigns 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 495
  • Joined: 29-October 07
  • Reputation: 1
  • Gender:Male
  • Location:United Kingdom, Mossley
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 30 July 2009 - 11:03 PM

I dont know but ill sure give it a try :)
Thanks
0

#6 User is offline   gfxpixeldesigns 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 495
  • Joined: 29-October 07
  • Reputation: 1
  • Gender:Male
  • Location:United Kingdom, Mossley
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 30 July 2009 - 11:11 PM

Ok so heres my updated form code
<form method="post" action="http://www.icscontrol.com/Login.aspx">
<input type="text" name="txtClientID" size="20" maxlength="30" /><br/>
<input type="text" name="txtUsername" size="20" maxlength="30" /><br/>
<input type="password" name="txtPassword" size="20" maxlength="30" /><br/>
<input type="submit" name="btnLogin" value="Login" />
</form> 

All this seems to do is link me to the login page, do i need some php code to go alongside this ?
0

#7 User is offline   gfxpixeldesigns 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 495
  • Joined: 29-October 07
  • Reputation: 1
  • Gender:Male
  • Location:United Kingdom, Mossley
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 31 July 2009 - 11:01 AM

Im really not sure what im doing here, im looking at a tutorial for creating a login form but do i need all the code to go with this since im really just linking to an existing login. Im guessing i wont be needing a config file to tell the form where the database is since the existing login does all this ?
0

#8 User is offline   skidz 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,047
  • Joined: 24-November 08
  • Reputation: 135
  • Gender:Male
  • Location:Derby
  • Experience:Advanced
  • Area of Expertise:Web Developer

Posted 31 July 2009 - 02:41 PM

You'll have to have the form action set the same as the form action of the ics form.
You'll also need to match up all the variables, sessions, cookies etc.
0

#9 User is offline   gfxpixeldesigns 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 495
  • Joined: 29-October 07
  • Reputation: 1
  • Gender:Male
  • Location:United Kingdom, Mossley
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 31 July 2009 - 02:54 PM

Well it seems i was missing the obvious easy way, just copy the original form code :)
Im not quite sure how it works, im just glad it does work.
<form name="frmLogin" method="post" action="http://www.icscontrol.com/Login.aspx" id="frmLogin">
<input name="__LASTFOCUS" id="__LASTFOCUS" value="" type="hidden">
<input name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTUwMDA1NDI0MGRkN1AlvDs8JTtGy4VN16pwnyCEfAU=" type="hidden">
<table border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td style="height: 20px; width: 65px;">
</td>
<td style="height: 20px;">
</td>
</tr>
<tr>
<td style="width: 65px; height: 26px;">Client ID:
</td>
<td style="height: 26px;"><input name="txtClientID" id="txtClientID" class="txtboxstyle" style="color: Black;" type="text"></td>
</tr>
<tr>
<td style="width: 65px; height: 26px;">Username:
</td>
<td style="height: 26px;"><input name="txtUsername" id="txtUsername" class="txtboxstyle" style="color: Black;" type="text"></td>
</tr>
<tr>
<td style="width: 65px; height: 26px;">Password:
</td>
<td style="height: 26px;"><input name="txtPassword" id="txtPassword" class="txtboxstyle" type="password"></td>
</tr>
<tr>
<td colspan="2" style="height: 40px;"><input name="btnLogin" value="Login" id="btnLogin" class="btnnormal login_button" type="submit"></td>
</tr>
</tbody></table>          
<input name="__EVENTTARGET" id="__EVENTTARGET" value="" type="hidden">
<input name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" type="hidden">
<input name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBQK91qiCCgLd+/CSBQKl1bK4CQK1qbSRCwKC3IeGDBI985KfQNFImqW4t3oCxFoFS33j" type="hidden">
</form>

So far so good, im waiting on some real variables i cant test it with but hopefully thats it.
Thanks for the help ;)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users