Home / Programs / Write HTML code for the following Form with post method Figure:
🚀 Programming Example

Write HTML code for the following Form with post method
Figure:

👁 1,565 Views
💻 Practical Program
📘 Step Learning
This is an example of HTML forms

💻 Program Code

<form method="post">
    First name: <input type = "text" name = "first_name" > <br><br>
    Second name: <input type = "text" name = "second_name" ><br><br>
	Age: <input type = "text" name = "age" ><br><br>
	
	Gender:  <input type = "radio" name = "gender" id = "male" value = "male">Male  
  <input type = "radio" name = "gender" id = "Female" value = "Female">Female  <br><br>
  
<p>Province:</p>

<select name="selDays" multiple="multiple"> 
	<option value="Punjab" > Punjab </option >
	<option value="Balochistan" > Balochistan </option >
	<option value="KPK" > KPK </option >
	<option value="Sindh" > Sindh </option > 
</select >

</form>
                        

📘 Explanation

Live Preview

📚 Learning Subject

Master Programming Through Practical Examples

Improve your coding logic, problem-solving skills and programming confidence by practicing real-world examples with explanations.

🎯 How to learn from this example

First understand the algorithm carefully. Then study the program line-by-line and compare it with the output. Finally, review the explanation section to strengthen your logic and programming understanding.

🔥 Practice suggestion

Rewrite the program without looking at the code. Modify values, conditions or logic and run it again. This helps improve confidence and strengthens coding skills much faster.