Jump to content

Archived

This topic is now archived and is closed to further replies.

kikilahooch

linking form to page

Recommended Posts

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>

Share this post


Link to post
Share on other sites
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:
[code]
<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>
[/code]
Somewhere in this form you should also have a field indicating which user is being acted upon.

Ken

Share this post


Link to post
Share on other sites
Try This

[code]<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>[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.