1
kiwiguy
Problem with HTML I wrote!
  • 2005/6/4 15:02

  • kiwiguy

  • Friend of XOOPS

  • Posts: 295

  • Since: 2004/4/19


I have a teensy weensy problem I am starting up a hosting site and have got some HTML written for a block so clients can login to there cpanels, WHM, webmail but it seems not to work in the XOOPS environment.

I have tested it using just a normal site no php no XOOPS no nothing and it works perfectly but as soon as i place it into the block of XOOPS i get a error on my page.

The code is below

Quote:
<BODY vLink=#808080 aLink=#808080 link=#808080 leftMargin=0 topMargin=0>
<SCRIPT language=javascript>
<!-- Begin
function Login(form) {
var username = form.username.value;
var password = form.password.value;
var domain = form.domain.value;
var port = form.port.value;
if (username && password && domain && port) {
var cpanel = "http://" + username + ":" + password + "@" + domain + port;
window.location = cpanel;
}
else {
alert("Please enter the account details contained in your welcome e-mail.\n");
}
}
// End -->
</SCRIPT>
<CENTER>
<TABLE width="24%" height=170
border=0 cellPadding=0 cellSpacing=0
borderColor=#111111 id=AutoNumber7 style="BORDER-COLLAPSE: collapse">
<TBODY>
<TR>
<TD vAlign=top width="75%"
background="Hosting - cheap hosting, reseller hosting, smtp servers, cpanel, fantastico_files/loginbg.gif"
height=98>
<FORM action=--WEBBOT-SELF-- method=post>
<!--webbot bot="SaveResults" u-file="fpweb:///_private/form_results.csv" s-format="TEXT/CSV" s-label-fields="TRUE" -->
<P><SPAN style="FONT-SIZE: 8.5pt"><B><FONT face=Arial
color=#666666>Client Login</FONT><FONT face=Arial
color=#999999><BR>
</FONT></B></SPAN><FONT face=Arial
color=#999999><FONT size=1>username:<BR>
<INPUT
style="BORDER-RIGHT: #808080 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: #808080 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 7pt; PADDING-BOTTOM: 1px; BORDER-LEFT: #808080 1px solid; PADDING-TOP: 1px; BORDER-BOTTOM: #808080 1px solid; FONT-FAMILY: Verdana"
size=14 name=username>
</FONT><FONT style="FONT-SIZE: 7pt"
size=1><BR>
password:<BR>
</FONT><FONT size=1>
<INPUT
style="BORDER-RIGHT: #808080 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: #808080 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 7pt; PADDING-BOTTOM: 1px; BORDER-LEFT: #808080 1px solid; PADDING-TOP: 1px; BORDER-BOTTOM: #808080 1px solid; FONT-FAMILY: Verdana"
type=password size=14 name=password>
<BR>
domain:<BR>
<FONT
style="FONT-SIZE: 7pt"><SPAN style="FONT-SIZE: 8.5pt">
<INPUT
style="BORDER-RIGHT: #808080 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: #808080 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 7pt; PADDING-BOTTOM: 1px; BORDER-LEFT: #808080 1px solid; PADDING-TOP: 1px; BORDER-BOTTOM: #808080 1px solid; FONT-FAMILY: Verdana"
size=14 name=domain>
<BR>
port:<BR>
<SELECT
style="BORDER-RIGHT: 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 7pt; PADDING-BOTTOM: 1px; BORDER-LEFT: 1px solid; PADDING-TOP: 1px; BORDER-BOTTOM: 1px solid; FONT-FAMILY: Verdana"
size=1 name=port>
<OPTION value=:2082 selected>cPanel Login - 2082</OPTION>
<OPTION value=:2086>Reseller Login - 2086</OPTION>
</SELECT>
<!--webbot bot="HTMLMarkup" startspan -->
<INPUT style="FONT-WEIGHT: bold; FONT-SIZE: 7pt; FONT-FAMILY: Verdana" onclick=Login(this.form) type=button value=Login name=button>
<!--webbot bot="HTMLMarkup" endspan i-checksum="32450" -->
<BR>
</SPAN></FONT></FONT></FONT><FONT
style="FONT-SIZE: 7pt" face=Verdana color=#999999 size=1>Webmail login - click <A
href="http://www.insane-space.com/webmail/">here</A></FONT></P>
</FORM></TD>
</TR>
</TBODY>
</TABLE>
</CENTER>





</BODY>


Thanks for your help in advance

kiwiguy

2
m0nty
Re: Problem with HTML I wrote!
  • 2005/6/4 16:07

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


whilst i'm far from being an expert in these matters.

maybe changing a few things might help.. but again i am not entirely sure they are the cause of the problem..

1.
<BODY vLink=#808080 aLink=#808080 link=#808080 leftMargin=0 topMargin=0>


xoops already has the body defined so a 2nd body tag may interfere.

2.
<TABLE width="24%" height=170 
border
=0 cellPadding=0 cellSpacing=
borderColor
=#111111 id=AutoNumber7 style="BORDER-COLLAPSE: collapse">


it might be worth quoting all the tags. ie height=170 change to height="170"

again it might not be that, but it's worth a try.

as a pointer too, web standards for compliance require tags to be lowercase.. eg. <TD > becomes <td > altho this won't make a difference to it working, if you plan on making w3c compliant and xhtml compliant sites then you have to use lowercase on tags.

Login

Who's Online

182 user(s) are online (107 user(s) are browsing Support Forums)


Members: 0


Guests: 182


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits