Log in

View Full Version : Simple form not working!



Anexxion
11-09-2008, 05:12 AM
When I click "login" nothing happens ;/

somebody PLEASE help me.

preview: http://www.globalc0re.com

<!--
Designed by: Marcel Olszewski
All rights reserved
Copyright 2008 voigrafic.com
-->
<html>
<head>
<link rel="stylesheet" type="text/css" href="splash.css">
<title>Globalcore :: Harcore Gaming Enthusiasts</title>
</head>
<!--BODY START-->
<body bgcolor="#FFFFFF">
<div id="gheader2">
<table width="119" height="33" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="/forum"><img src="/splash/gheadimg.png" border="0"></a></td>
</tr>
</table>
</div>
<div id="gheader"></div>
<table width="264" height="62" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td style="background: #FFFFFF url(http://www.globalc0re.com/splash/loginbox_l.gif) no-repeat; width:163px; height:62px;">
<form action="http://www.globalc0re.com/forum/index.php?act=Login&amp;CODE=01&amp;CookieDate=1&amp;buddy=1" method="post" name="theForm" onSubmit="return check_form();">
<input type="text" name="UserName" size="14" class="input">
<div id="spacer"></div>
<input type="password" name="PassWord" size="14" class="input"/>
</form>
</td>
<td width="101" style="background: #FFFFFF url(http://www.globalc0re.com/splash/loginbox_r.gif) no-repeat; width:101px; height:62px;">
<!--Buttons-->
<table width="89" height="20" border="0" cellpadding="0" cellpadding="0">
<tr>
<td><input type="image" value="submit"name="PassWord" size="14" src="http://www.globalc0re.com/splash/login01.gif"/></td>
</tr>
<tr>
<td><a href="/forum"><img src="http://www.globalc0re.com/splash/enter01.gif" border=""></a></td>
</tr>
</table>
<!--Buttons End-->
</td>
</tr>
</table>
<div id="footer">
<div class="footer_image">
<div class="copyright">
</div>
<div class="copyright">Designed by Marcel Olszewski - Voigrafic.com</div>
<div class="copyright">Copyright © 2008 ResEngine.com</div>
<div class="copyright">Crossbrowser Compatible</div>
</div>
</div>
</body>
<!--BODY END-->
</html>

Nilsy
11-09-2008, 02:15 PM
First of all the page must be an asp page this form will not work in standard html as the page needs to talk to the server.

Second you must have a connection to the database that the form is in refference to.

this can be a lengthy process if you have never worked in asp before as you must learn a few basics to get to the point where you would like to be. there are some tutorials at lynda.com that can help you.

Regards

Nilsy

Anexxion
11-09-2008, 03:49 PM
uh, no, cause I had it working before, the from is just split into different tables and the submit button doesn't take info from the user and pass boxes, i dont know how to place the buttons and the boxes side by side without using the method that I did.

Medyman
11-09-2008, 05:21 PM
@Nilsy
The code references a PHP script, not ASP and there is no relation to a database.

@Anexxion
The form can only submit information that are contained within it. Assuming that everything is fine with the PHP script you're using, you should put everything within one <form> block.

As far as your markup is concerned, it could be streamlined but it's not necessary to get the form to work.

You can simply put the starting <form> tag before the <table> tag and the closing </form> tag after the closing </table> tag.

That will turn your entire table into the form (so to speak). This will also allow all of the input fields to pass their data to your PHP script.

HTH