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
https://forums.phpfreaks.com/topic/8300-linking-form-to-page/
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
https://forums.phpfreaks.com/topic/8300-linking-form-to-page/#findComment-30273
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
https://forums.phpfreaks.com/topic/8300-linking-form-to-page/#findComment-30284
Share on other sites

Archived

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

×
×
  • 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.