Welcome!
Log In
Create A New Profile
Home
>
ICT3612 Sem 2
> Topic
Advanced
Making dropdown list data persist
Posted by
49912232 -mbux
Announcements
Last Post
SoC Curricula
09/30/2017 01:08PM
Demarcation or scoping of examinations and assessment
02/13/2017 07:59AM
School of Computing Short Learning Programmes
11/24/2014 08:37AM
Unisa contact information
07/28/2011 01:28PM
Forums
Messages
New
49912232 -mbux
Making dropdown list data persist
October 17, 2013 06:13PM
Registered: 11 years ago
Posts: 13
Rating: 0
Dear All,
I used a dropdown list to select the Mathematical operator for my calculator.
When I click the submit button, the 1st option appear and not the one that I selected.
How can I make what the user selected to show on the dropdownlist?
Your help wiil be humbly appreciated.
49912232 mbux
Reply
Quote
bigron11
Re: Making dropdown list data persist
October 17, 2013 08:55PM
Admin
Registered: 11 years ago
Posts: 6,606
Rating: 396
On your form -
<select name="operator">
<option value="add">Add</option>
<option value="subtract">Subtract</option>
More options
</select>
PHP code -
if (isset($_POST[submit"])
{
$operator = $_POST['operator'];
}
Reply
Quote
Newer Topic
Older Topic
Print View
RSS
Sorry, only registered users may post in this forum.
Click here to login