Jump to content

how to ensure all the input box in the form is filled


Ordinary_Shepp

Recommended Posts

Let us see the code first, 

<?php
	require_once 'func.php';
	connect() ;
?>

<!DOCTYPE html>
<html>
	<head>
	</head>
	<body>
		<header> <h1 align='center'>Division Input System</h1></header>
		<form method="post" action="divprocess.php" enctype="multipart/form-data">
			<table>
			<tr> <td> Division </td> <td> <input type="text" name="name" /> </td> </tr>
			<tr> <td> Zeo Code </td> <td> <input type="text" name="zeocode" /> </td> </tr>
			<tr> <td>     </td> <td><input type="submit" value="Submit"></td></tr>
			</table>
		</form>
	</body>
</html>

Now if I want to enable the submit button only when the two field are populated with data what should I do ?

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.