Jump to content

drop down db insert


sasori

Recommended Posts

hello, i need help on how to insert my selected option from the drop down menu into the db.

the objective is, to allow the user to choose an option from 1-10 based on the skills.

here's my code (kindly check if am on the right path of my code and help me how to insert it on db)

<tr>
    	<td>1.) Web page  creation using WordPress or another HTML  editor,
        please select which one you use and your skill level.</td>
	<td><select name="webpage">
	<?php 
		for($i=10;$i>0;$i--){
		echo "<option value='$i'";
			if(isset($i)){
				echo " selected ";
				}
		echo ">$i</option>\n";
		}
	?>
        </select></td>
</tr>
<tr>
    	<td><br>2.) Video Editing?</td>
	<td><select name="video">
	<?php 
		for($i=10;$i>0;$i--){
		echo "<option value='$i'";
			if(isset($i)){
				echo " selected ";
				}
		echo ">$i</option>\n";
		}
	?>
        </select></td>
</tr>
<tr>
    	<td><br>3.) Story creation and creativity in producing </td>
	<td><select name="story">
	<?php 
		for($i=10;$i>0;$i--){
		echo "<option value='$i'";
			if(isset($i)){
				echo " selected ";
				}
		echo ">$i</option>\n";
		}
	?>
        </select></td>
</tr>
<tr>

Link to comment
https://forums.phpfreaks.com/topic/139793-drop-down-db-insert/
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.