Jump to content

linking form to page


kikilahooch

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>
Link to comment
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
Link to comment
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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.