ntb87
05-24-2008, 01:25 PM
Hi all.
I am trying to create a web form thing for a uni group assignment. Now i had a form defined as below, which worked as i expected it to...
<HTML>
<TITLE> ***TITLE HERE *** </TITLE>
<HEAD>
</HEAD>
<BODY>
<p align="center"><IMG src="Dock.jpg" width=640 height=100 /></p>
<br />
NOTE: This will only delete the student based on their Student ID!!! <br />
<form action="confirmDeleteStudent.php" method="post">
StudentID: <input type="text" name="StudentID" /><br />
<input type="submit" />
</form>
</BODY>
</HTML>
Now a group member took that ugle page and made it look really nice, but now the form action link is not opened, and the post method isn't working (it simply redirects the page to itself with a url like its was called with the form get method
Here is the whole code for the new page:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Delete Student</title>
<link rel="stylesheet" type="text/css" href="includes/FormStyle.css" />
</head>
<body>
<form id="form1" runat="server">
<div id="main-container">
<div id="banner">
<div id="leftBanner"></div>
<div id="rightBanner">
<div id="topBanner"></div>
<div id="middleBanner">
<div id="middleBannerLeft"></div>
<div id="middleBannerRight">
<!-- <p id="MUheading">
MACQUARIE UNIVERSITY
</p>
<p id="InovHeading">
AUSTRALIAS INNOVATIVE UNIVERSITY
</p> -->
</div>
</div>
</div>
<div id="bottomBanner">
<h1>Delete Student</h1>
</div>
</div>
<div id="sideBar"></div>
<?php include("includes/Format.php"); ?>
<div id="contentPanel">
<div id="heading">
<h2>Delete Student</h2>
<h3>Enter a student number and click Submit</h3>
</div>
<div id="innerContentPanel">
<!-- <p align="center"><IMG src="Dock.jpg" width=640 height=100 /></p> -->
<br />
NOTE: This will only delete the student based on their Student ID!!! <br /><br />
<form action="confirmDeleteStudent.php" method="post">
StudentID: <input type="text" name="StudentID" /><br /><br />
<!-- <div id="submitPanel"> -->
<input type="submit" value="Submit" />
<!-- </div><br /> -->
</form>
</div>
</div>
</div>
</form>
</body>
</html>
Is the problem to do with the fact that the form is in a <div> tag? (and could someone clarify for me, is a <div> just a divider tag so we can apply a css style to it, or is it something else")
Thanks for reading...
I am trying to create a web form thing for a uni group assignment. Now i had a form defined as below, which worked as i expected it to...
<HTML>
<TITLE> ***TITLE HERE *** </TITLE>
<HEAD>
</HEAD>
<BODY>
<p align="center"><IMG src="Dock.jpg" width=640 height=100 /></p>
<br />
NOTE: This will only delete the student based on their Student ID!!! <br />
<form action="confirmDeleteStudent.php" method="post">
StudentID: <input type="text" name="StudentID" /><br />
<input type="submit" />
</form>
</BODY>
</HTML>
Now a group member took that ugle page and made it look really nice, but now the form action link is not opened, and the post method isn't working (it simply redirects the page to itself with a url like its was called with the form get method
Here is the whole code for the new page:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Delete Student</title>
<link rel="stylesheet" type="text/css" href="includes/FormStyle.css" />
</head>
<body>
<form id="form1" runat="server">
<div id="main-container">
<div id="banner">
<div id="leftBanner"></div>
<div id="rightBanner">
<div id="topBanner"></div>
<div id="middleBanner">
<div id="middleBannerLeft"></div>
<div id="middleBannerRight">
<!-- <p id="MUheading">
MACQUARIE UNIVERSITY
</p>
<p id="InovHeading">
AUSTRALIAS INNOVATIVE UNIVERSITY
</p> -->
</div>
</div>
</div>
<div id="bottomBanner">
<h1>Delete Student</h1>
</div>
</div>
<div id="sideBar"></div>
<?php include("includes/Format.php"); ?>
<div id="contentPanel">
<div id="heading">
<h2>Delete Student</h2>
<h3>Enter a student number and click Submit</h3>
</div>
<div id="innerContentPanel">
<!-- <p align="center"><IMG src="Dock.jpg" width=640 height=100 /></p> -->
<br />
NOTE: This will only delete the student based on their Student ID!!! <br /><br />
<form action="confirmDeleteStudent.php" method="post">
StudentID: <input type="text" name="StudentID" /><br /><br />
<!-- <div id="submitPanel"> -->
<input type="submit" value="Submit" />
<!-- </div><br /> -->
</form>
</div>
</div>
</div>
</form>
</body>
</html>
Is the problem to do with the fact that the form is in a <div> tag? (and could someone clarify for me, is a <div> just a divider tag so we can apply a css style to it, or is it something else")
Thanks for reading...