Results 1 to 4 of 4

Thread: Simple form not working!

  1. #1
    Join Date
    Mar 2008
    Posts
    58
    Thanks
    22
    Thanked 0 Times in 0 Posts

    Default Simple form not working!

    When I click "login" nothing happens ;/

    somebody PLEASE help me.

    preview: http://www.globalc0re.com
    Code:
    <!--
    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>

  2. #2
    Join Date
    Sep 2008
    Location
    Strawberry Hill, Twickenham, London, UK.
    Posts
    15
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default

    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

  3. #3
    Join Date
    Mar 2008
    Posts
    58
    Thanks
    22
    Thanked 0 Times in 0 Posts

    Default

    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.

  4. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    @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
    Last edited by jscheuer1; 11-09-2008 at 09:54 PM. Reason: sense of the words used - change but to put, ect.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •