Jump to content


Photo

linking form to page


  • Please log in to reply
2 replies to this topic

#1 kikilahooch

kikilahooch
  • Members
  • PipPipPip
  • Advanced Member
  • 72 posts

Posted 24 April 2006 - 09:08 PM

below is the code i have used but there is nothing happening when i click on submit. any help greatly appreciated.


<html>
<head>
<title> adminwelcome</title>
</head> <a name = "adminwelcome">

<font color="#5CB3FF">

<p> <font color= #000000>

<body link="green" alink="black" vlink="green">


<h1><center>
Welcome Admin
</center></h1>

<p>
<p>
<p><center>

<p>Please select from the following options</p>


<form name="update" method="post" action="update_members.php">
Update Member Details
<input type="checkbox" name="checkbox" value="checkbox">
</form>
<form name="delete" method="post" action="delete_members.php">
Delete Member Details
<input type="checkbox" name="checkbox" value="checkbox">
</form>

</form>
<input type="submit" name="Submit" value="Submit">
<p>&nbsp;</p>

<p>&nbsp;</p>
</center>
<center><label></label>


</p>
<li>
<center><a href="userlogin.html" target= "mainframe"><b>
Back to homepage
</center>
<br>
<br>
<br>
<br>
<br>
</body>
</html>

</body>
</html>


#2 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 24 April 2006 - 09:18 PM

You're HTML is incorrect. You should have one <form> and one </form> for each form, You have one per line.

You need to have something like:
 <form  method="post" action="update_members.php">
Update Member Details <input type="checkbox" name="checkbox" value="update"><br>
Delete Member Details <input type="checkbox" name="checkbox" value="delete"><br>
<input type="submit" name="Submit" value="Submit">
</form>
Somewhere in this form you should also have a field indicating which user is being acted upon.

Ken

#3 avo

avo
  • Members
  • PipPipPip
  • Advanced Member
  • 148 posts
  • Locationstaffordshire uk

Posted 24 April 2006 - 09:55 PM

Try This

<html>
<head>
<title>adminwelcome</title>
</head>
<h1 align="center">Welcome Admin</h1>
<form name="form1" method="post" action="">
<p align="center">Please select from the following options</p>
<p align="center">Update Member Details
<input type="checkbox" name="checkbox2" value="checkbox">
</p>
<p align="center">Delete Member Details
<input type="checkbox" name="checkbox" value="checkbox">
</p>
<p align="center">
<input type="submit" name="Submit" value="Submit">
</p>
</form>
</center>
<label></label>
<li><a href="userlogin.html">Back to homepage</a>
</body>
</html>
</body>
</html>

Im loving it ........




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users