Page 304 - Computer Software Application TP - Volume 1
P. 304
COMPUTER SOFTWARE APPLICATION - CITS
TASK 5 : Using hidden fields
I Creating Hidden Fields
1 Open the text editor
2 Write the following codes
<html>
<body>
<form method=”post” action=”process.php”>
<input type=”hidden” name=”user_id” value=”123”>
<input type=”text” name=”username”>
<button type=”submit”>Submit</button>
</form>
</body>
</html>
3 Save the program in C:\Apache24\htdocs in a folder with .html extension
II Accessing Hidden Field Values
1 Open the text editor
2 Write the following codes
<html>
289
CITS : IT & ITES - Computer Software Application - Exercise 56