Solved

Parsing <Select> Tag in PHP from Method Post

Posted on 2003-11-13
1
247 Views
Last Modified: 2013-12-13
I have a drop down list object on one of my web pages - when I Post to my .php file, how do I move through the list to find the selected item? I'm trying to sequence through all the <Select Tag items so I can write them to a table - the selected item I will actually skip because this task is to delete the selected item from the drop down list.

Thanks for any help...
0
Comment
Question by:rfresh
1 Comment
 
LVL 6

Accepted Solution

by:
DoppyNL earned 125 total points
ID: 9745795
the browser will only sent back a single value to the server; the value wich was selected. all other values will not be sent back to the server.
So you don't have to walk through those values.

simply use this variable:

print($_POST['name_of_select_box']);

to print out the value returned.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

This article discusses how to create an extensible mechanism for linked drop downs.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now