
|
View Full Version : Perl Desk .pl Question
dherman76 02-11-2003, 12:06 AM This pertains to Perl Desk users only or adventurous coders:
I have a question about taking the log-in form and putting it on different pages. I'm currently building a website where i want people to log in on a page (http://www.ebaysellers.net/helpdesk.html)
I can't seem to get this working - what am i doing wrong? They can register an account fine, but they can't log-in. I think the log-in push box isn't working...any ideas?
Darren Herman
luxline 02-11-2003, 02:35 AM Its your cookies.
Solution:
In your opening page, in the form put in the following two lines:
<input type=hidden name="remember" value="yes">
<input type=hidden name=lang value=en>
Should do the trick.
You can delete the accounts "testtest" and "test1234" that was me.
dherman76 02-11-2003, 08:52 AM I tried that - but 1 it already was there, 2 i put it between the <form></form> tags to no avail. I will copy the source into here...
dherman76 02-11-2003, 08:53 AM <HTML>
<HEAD>
<TITLE>EbaySellers.net Help Desk</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</HEAD>
<BODY BGCOLOR=#003366 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<!-- ImageReady Slices (layout.PSD) -->
<TABLE WIDTH=765 BORDER=0 height=100% align=center CELLPADDING=0 CELLSPACING=0>
<TR>
<TD COLSPAN=9>
<IMG SRC="images/index_01.jpg" WIDTH=765 HEIGHT=34 ALT=""></TD>
</TR>
<TR>
<TD>
<IMG SRC="images/index_02.jpg" WIDTH=125 HEIGHT=73 ALT=""></TD>
<TD>
<a href=index.html><IMG SRC="images/index_03.jpg" WIDTH=63 HEIGHT=73 ALT="" border=0></a></TD>
<TD>
<a href=sellers.html><IMG SRC="images/index_04.jpg" WIDTH=102 HEIGHT=73 ALT="" border=0></a></TD>
<TD COLSPAN=2>
<a href=consumers.html><IMG SRC="images/index_05.jpg" WIDTH=94 HEIGHT=73 ALT="" border=0></a></TD>
<TD>
<a href=helpdesk.html><IMG SRC="images/index_06.jpg" WIDTH=87 HEIGHT=73 ALT="" border=0></a></TD>
<TD>
<a href=account.html><IMG SRC="images/index_07.jpg" WIDTH=85 HEIGHT=73 ALT="" border=0></a></TD>
<TD>
<a href=controlpanel.html><IMG SRC="images/index_08.jpg" WIDTH=83 HEIGHT=73 ALT="" border=0></a></TD>
<TD>
<IMG SRC="images/index_09.jpg" WIDTH=126 HEIGHT=73 ALT=""></TD>
</TR>
<tr colspan=9>
<td bgcolor=white colspan=9 valign=top><img src=bar.jpg></td>
</tr>
<tr>
<td colspan=0 height=100% bgcolor=white valign=top colspan=9 style="padding-left: 15px; padding-top: 15px; padding-right: 15px;">
<img src=helpdesk.jpg align=left>
<br><br><br>
<!-- ALL CONTENT SHOULD GO BELOW THIS -->
<p align="center"><font face="Arial, Helvetica, sans-serif" size="3"><b>Welcome
To AuctInfo/EbaySellers.net Help Desk</font><br>
<br>
<font face="Arial, Helvetica, sans-serif" size="1">In order to use the help desk (eBay Auction bidders only), you must have a registered
account. To open an account, <a href="http://ebaysellers.net/cgi-bin/helpdesk/pdesk.cgi?do=register&lang=en">click
here</a>.</font></b></font></p>
<table cellspacing=0 cellpadding=3 width="100%" align=center border=0>
<tr>
<form action="http://ebaysellers.net/cgi-bin/helpdesk/pdesk.cgi" method=post>
<input type=hidden name="remember" value="yes">
<input type=hidden name=lang value=en>
</form>
<tr>
<td align=middle><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Username:</font><font face="Verdana, Arial, Helvetica, sans-serif">
<input
name=username>
</font></td>
</tr>
<tr>
<td class=menu id=menuid align=middle><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Password:</font><font face="Verdana, Arial, Helvetica, sans-serif">
<input type=password name=password>
</font></td>
</tr>
<tr>
<td>
<p align=center><font face="Verdana, Arial, Helvetica, sans-serif">
<input type=submit value=Login name=Submit>
<br>
<font
size=2><a
href="http://ebaysellers.net/cgi-bin/helpdesk/pdesk.cgi?do=register&lang=en">Click
Here To Open An Account</a></font></font>
<center>
</center>
<td class=menu id=menuid valign=top align=middle>
<p align=left><font face="Verdana, Arial, Helvetica, sans-serif">
<input type=hidden value=en name=lang>
<input
type=hidden value=pro_login name=do>
</font></p>
</td>
</tr>
<center>
</center>
</table>
<p> </p>
<p align="center"><img src="ebaylogo.gif" width="171" height="78"><img src="AuctInfoAccredited.gif" width="72" height="69"></p>
<p align="center"></p>
<p align="center"><font size="1"><i><font face="Arial, Helvetica, sans-serif">©
AuctInfo.com 2002. All rights reserved.</font></i></font><font face="Arial, Helvetica, sans-serif" size="2">
<br>
</font> </p>
<!-- ALL CONTENT SHOULD GO ABOVE THIS -->
</td>
</tr>
<TR>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=125 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=63 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=102 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=86 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=8 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=87 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=85 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=83 HEIGHT=1 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=126 HEIGHT=1 ALT=""></TD>
</TR>
</TABLE>
<!-- End ImageReady Slices -->
</BODY>
</HTML>
dherman76 02-11-2003, 08:53 AM any ideas?
luxline 02-11-2003, 09:24 AM The line </form> is in the wrong place, it needs to be much lower down.
You can just copy and paste this AS IS, it should do the trick.
<HTML>
<HEAD>
<TITLE>EbaySellers.net Help Desk</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</HEAD>
<BODY BGCOLOR=#003366 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<!-- ImageReady Slices (layout.PSD) -->
<TABLE WIDTH=765 BORDER=0 height=100% align=center CELLPADDING=0 CELLSPACING=0>
<TR>
<TD COLSPAN=9>
<IMG SRC="images/index_01.jpg" WIDTH=765 HEIGHT=34 ALT=""></TD>
</TR>
<TR>
<TD>
<IMG SRC="images/index_02.jpg" WIDTH=125 HEIGHT=73 ALT=""></TD>
<TD>
<a href=index.html><IMG SRC="images/index_03.jpg" WIDTH=63 HEIGHT=73 ALT="" border=0></a></TD>
<TD>
<a href=sellers.html><IMG SRC="images/index_04.jpg" WIDTH=102 HEIGHT=73 ALT="" border=0></a></TD>
<TD COLSPAN=2>
<a href=consumers.html><IMG SRC="images/index_05.jpg" WIDTH=94 HEIGHT=73 ALT="" border=0></a></TD>
<TD>
<a href=helpdesk.html><IMG SRC="images/index_06.jpg" WIDTH=87 HEIGHT=73 ALT="" border=0></a></TD>
<TD>
<a href=account.html><IMG SRC="images/index_07.jpg" WIDTH=85 HEIGHT=73 ALT="" border=0></a></TD>
<TD>
<a href=controlpanel.html><IMG SRC="images/index_08.jpg" WIDTH=83 HEIGHT=73 ALT="" border=0></a></TD>
<TD>
<IMG SRC="images/index_09.jpg" WIDTH=126 HEIGHT=73 ALT=""></TD>
</TR>
<tr colspan=9>
<td bgcolor=white colspan=9 valign=top><img src=bar.jpg></td>
</tr>
<tr>
<td colspan=0 height=100% bgcolor=white valign=top colspan=9 style="padding-left: 15px; padding-top: 15px; padding-right: 15px;">
<img src=helpdesk.jpg align=left>
<br><br><br>
<!-- ALL CONTENT SHOULD GO BELOW THIS -->
<p align="center"><font face="Arial, Helvetica, sans-serif" size="3"><b>Welcome
To AuctInfo/EbaySellers.net Help Desk</font><br>
<br>
<font face="Arial, Helvetica, sans-serif" size="1">In order to use the help desk (eBay Auction bidders only), you must have a registered
account. To open an account, <a href="http://ebaysellers.net/cgi-bin/helpdesk/pdesk.cgi?do=register&lang=en">click
here</a>.</font></b></font></p>
<table cellspacing=0 cellpadding=3 width="100%" align=center border=0>
<tr>
<form action="http://ebaysellers.net/cgi-bin/helpdesk/pdesk.cgi" method=post>
<input type=hidden name="remember" value="yes">
<input type=hidden name=lang value=en>
<!-- move the /form further down -->
<tr>
<td align=middle><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Username:</font><font face="Verdana, Arial, Helvetica, sans-serif">
<input
name=username>
</font></td>
</tr>
<tr>
<td class=menu id=menuid align=middle><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Password:</font><font face="Verdana, Arial, Helvetica, sans-serif">
<input type=password name=password>
</font></td>
</tr>
<tr>
<td>
<p align=center><font face="Verdana, Arial, Helvetica, sans-serif">
<input type=submit value=Login name=Submit>
<!-- move it to here -->
</form>
<br>
<font
size=2><a
href="http://ebaysellers.net/cgi-bin/helpdesk/pdesk.cgi?do=register&lang=en">Click
Here To Open An Account</a></font></font>
<center>
</center>
<td class=menu id=menuid valign=top align=middle>
<p align=left><font face="Verdana, Arial, Helvetica, sans-serif">
<input type=hidden value=en name=lang>
<input
type=hidden value=pro_login name=do>
</font></p>
</td>
</tr>
<center>
</center>
</table>
<p> </p>
<p align="center"><img src="ebaylogo.gif" width="171" height="78"><img src="AuctInfoAccredited.gif" width="72" height="69"></ p>
<p align="center"></p>
<p align="center"><font size="1"><i><font face="Arial, Helvetica, sans-serif">©
AuctInfo.com 2002. All rights reserved.</font></i></font><font face="Arial, Helvetica, sans-serif" size="2">
<br>
</font> </p>
<!-- ALL CONTENT SHOULD GO ABOVE THIS -->
Get back to me if it doesnt do the trick, and I'll give it a good looking into.
dherman76 02-11-2003, 09:27 AM Thank you so very much!
dherman76 02-11-2003, 01:36 PM So, I added it, and it still doesn't work - i get brought to the perldesk page (try it with username: demo/password: demo)
http://ebaysellers.net/helpdesk.html
luxline 02-11-2003, 02:06 PM Ive narrowed it down to one of two things.
Either its the cookies in the helpdesk.cgi
OR
its the referrer - if the helpdesk.cgi is not called from /cgi-bin/helpdesk/helpdesk.cgi - it doesnt accept the login.
My money is with the latter at this point, but Ill need to test it further. Leave it with me, I will try to get you a solid answer by the morning.
dherman76 02-11-2003, 02:10 PM Thanks so much!
luxline 02-11-2003, 03:15 PM Cracked it!
http://64.246.38.19/ebaysellers.html
test it, if it works, just view source, or save as, and then replace your file on your server with this one. If you need me to put the html here, or email you it, just let me know.
Ive tested it with 3 different browsers, all cookies deleted, and it works, and you get straight in.
As for an answer, I believe it was the submit button value, however I've changed so many items in there, honestly I lost track.
dherman76 02-11-2003, 03:16 PM Thanks so much! I will do it later tonight (around 10PM - 8 hours from now)
dherman76 02-11-2003, 03:23 PM Can you send me the code for it because for some reason, its' not working correctly when i download it.
luxline 02-11-2003, 03:40 PM Here we go. I trust it worked from the URL http:64.246.38.19/ebaysellers.html
<HTML>
<HEAD>
<TITLE>EbaySellers.net Help Desk</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</HEAD>
<BODY BGCOLOR=#003366 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<!-- ImageReady Slices (layout.PSD) -->
<TABLE WIDTH=765 BORDER=0 height=100% align=center CELLPADDING=0 CELLSPACING=0>
<TR>
<TD COLSPAN=9>
<IMG SRC="http://ebaysellers.net/images/index_01.jpg" WIDTH=765 HEIGHT=34 ALT="">
</TD>
</TR>
<TR>
<TD>
<IMG SRC="http://ebaysellers.net/images/index_02.jpg" WIDTH=125 HEIGHT=73 ALT=""></TD>
<TD>
<a href=index.html><IMG SRC="http://ebaysellers.net/images/index_03.jpg" WIDTH=63 HEIGHT=73 ALT="" border=0></a></TD>
<TD>
<a href=sellers.html><IMG SRC="http://ebaysellers.net/images/index_04.jpg" WIDTH=102 HEIGHT=73 ALT="" border=0></a></TD>
<TD COLSPAN=2>
<a href=consumers.html><IMG SRC="http://ebaysellers.net/images/index_05.jpg" WIDTH=94 HEIGHT=73 ALT="" border=0></a></TD>
<TD>
<a href=helpdesk.html><IMG SRC="http://ebaysellers.net/images/index_06.jpg" WIDTH=87 HEIGHT=73 ALT="" border=0></a></TD>
<TD>
<a href=account.html><IMG SRC="http://ebaysellers.net/images/index_07.jpg" WIDTH=85 HEIGHT=73 ALT="" border=0></a></TD>
<TD>
<a href=controlpanel.html><IMG SRC="http://ebaysellers.net/images/index_08.jpg" WIDTH=83 HEIGHT=73 ALT="" border=0></a></TD>
<TD>
<IMG SRC="http://ebaysellers.net/images/index_09.jpg" WIDTH=126 HEIGHT=73 ALT=""></TD>
</TR>
<tr>
<td bgcolor=white colspan=9 valign=top><img src=http://ebaysellers.net/bar.jpg></td>
</tr>
<tr>
<td colspan=0 height=100% bgcolor=white valign=top colspan=9 style="padding-left: 15px; padding-top: 15px; padding-right: 15px;">
<img src=http://ebaysellers.net/helpdesk.jpg align=left>
<br><br><br>
<!-- ALL CONTENT SHOULD GO BELOW THIS -->
<p align="center"><font face="Arial, Helvetica, sans-serif" size="3"><b>Welcome
To AuctInfo/EbaySellers.net Help Desk</font><br>
<br>
<font face="Arial, Helvetica, sans-serif" size="1">In order to use the help desk (eBay Auction bidders only), you must have a registered
account. To open an account, <a href="http://ebaysellers.net/cgi-bin/helpdesk/pdesk.cgi?do=register&lang=en">click
here</a>.</font></b></font></p>
<!-- t2 -->
<table cellspacing=0 cellpadding=3 width="100%" align=center border=0>
<tr>
<td align=middle>
<form action="http://ebaysellers.net/cgi-bin/helpdesk/pdesk.cgi" method=post>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">Username:</font><font face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="username">
<input type=hidden name="remember" value="yes">
<input type="hidden" name="lang" value="en">
<input type="hidden" name="do" value="pro_login">
</font></td>
</tr>
<tr>
<td class=menu id=menuid align=middle><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Password:</font><font face="Verdana, Arial, Helvetica, sans-serif">
<input type="password" name="password">
</font></td>
</tr>
<tr>
<td>
<p align=center><font face="Verdana, Arial, Helvetica, sans-serif">
<input type="submit" name="Submit" value=" Login ">
</form>
<br>
<font size=2><a href="http://ebaysellers.net/cgi-bin/helpdesk/pdesk.cgi?do=register&lang=en">Click
Here To Open An Account</a></font></font>
</td>
<center>
</center>
<td class=menu id=menuid valign=top align=middle>
<p align=left><font face="Verdana, Arial, Helvetica, sans-serif">
</font></p>
</td>
</tr>
<center>
</center>
</table>
</td></tr>
</table>
<p> </p>
<p align="center"><img src="ebaylogo.gif" width="171" height="78"><img src="AuctInfoAccredited.gif" width="72" height="69"></ p>
<p align="center"></p>
<p align="center"><font size="1"><i><font face="Arial, Helvetica, sans-serif">©
AuctInfo.com 2002. All rights reserved.</font></i></font><font face="Arial, Helvetica, sans-serif" size="2">
<br>
</font> </p>
<!-- ALL CONTENT SHOULD GO ABOVE THIS -->
dherman76 02-11-2003, 03:45 PM You're awesome. If you want to help me customize PerlDesk (interior pages) into my template and make some extra $$, please contact me :)
|