answersLogoWhite

0


Best Answer

When getting any Information in PHP from a form use $_POST (unless your method is GET in which case $_GET)

This is how you do it (I'm using ( and ) instead of < and >)


(?php


$my_drop_down = $_POST['drop_down_name']; #Then $my_drop_down equals what ever's in value= eg My Value 1, My Value 2,My Value 3
?)


(select name="drop_down_name")
(option value="My Value 1" selected)My Option 1(/option)
(option value="My Value 2")My Option 2(/option)
(option value="My Value 3")My Option 3(/option)
(/select)


(I've also added a few php help links)

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you persist data in PHP forms specially drop down box?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you entered information into Excel worksheet?

You can just type in what you want into Excel, by putting things into cells. Then by entering formulas you can get information from the spreadsheet. You can get charts from your data. You can enter data using forms. You can enter data using form controls, such as drop-down boxes.You can just type in what you want into Excel, by putting things into cells. Then by entering formulas you can get information from the spreadsheet. You can get charts from your data. You can enter data using forms. You can enter data using form controls, such as drop-down boxes.You can just type in what you want into Excel, by putting things into cells. Then by entering formulas you can get information from the spreadsheet. You can get charts from your data. You can enter data using forms. You can enter data using form controls, such as drop-down boxes.You can just type in what you want into Excel, by putting things into cells. Then by entering formulas you can get information from the spreadsheet. You can get charts from your data. You can enter data using forms. You can enter data using form controls, such as drop-down boxes.You can just type in what you want into Excel, by putting things into cells. Then by entering formulas you can get information from the spreadsheet. You can get charts from your data. You can enter data using forms. You can enter data using form controls, such as drop-down boxes.You can just type in what you want into Excel, by putting things into cells. Then by entering formulas you can get information from the spreadsheet. You can get charts from your data. You can enter data using forms. You can enter data using form controls, such as drop-down boxes.You can just type in what you want into Excel, by putting things into cells. Then by entering formulas you can get information from the spreadsheet. You can get charts from your data. You can enter data using forms. You can enter data using form controls, such as drop-down boxes.You can just type in what you want into Excel, by putting things into cells. Then by entering formulas you can get information from the spreadsheet. You can get charts from your data. You can enter data using forms. You can enter data using form controls, such as drop-down boxes.You can just type in what you want into Excel, by putting things into cells. Then by entering formulas you can get information from the spreadsheet. You can get charts from your data. You can enter data using forms. You can enter data using form controls, such as drop-down boxes.You can just type in what you want into Excel, by putting things into cells. Then by entering formulas you can get information from the spreadsheet. You can get charts from your data. You can enter data using forms. You can enter data using form controls, such as drop-down boxes.You can just type in what you want into Excel, by putting things into cells. Then by entering formulas you can get information from the spreadsheet. You can get charts from your data. You can enter data using forms. You can enter data using form controls, such as drop-down boxes.


Why are DDT and PCBs classified as persistent organic pollutants?

They don't break down or biodegrade in nature; they persist.


What are common forms of user errors?

Common forms of user error can include copying an older version of a file over a newer version, formatting a disk containing important data or corrupting files by not correctly shutting- down hardware


What can you use to narrow down the data in your worksheet?

your mind or of info to logical narrow down your data to what you want


What saves data in a computer after shutting down?

The hard drive saves all data on your computer and will stay saved after the computer shuts down. RAM will temporally store data but will be deleted after shut down.


What is the purpose of a data chart?

the purpose of a data chart is to write your data down by using your chart


What does record means data?

record data mean to write down your data. Data is the result of an experiment. It is useful to record data for farther use.


How do you gather data?

by writing it down


Whats the bite force of a sulcata?

The bite force of sulcata are specially intended to break down weak foods.


What forms when Rock's break down?

soil


What kind of data did the Mayas write down?

The Maya wrote down special events happening.


What are the forms of a star?

did you know that the sun is are star. when you see the star come down that we the star forms :)