Getting PHP to ammended the selected in option field


Posted on 16th Feb 2014 07:03 pm by admin

Hey Guys

thanks for everyones help so far. This site and its users are oozing awesomness.

I am busy with a php script for editing users, of which 1 field is the TITLE of the person (mrs, miss, ms) and it is displayed as a dropdown box. I have written the code which allows you to get the values in the fields for the rest of the fields, but I am not sure how to get PHP to change the actual selected dropdown box. The only thing I can think of is to have a if else statement for each option in the select dropdown, but I assume that when someone has a lot of options in their SELECT dropdown, it will be a lot of work and I am sure someone knows the trick behind this

Any suggestions?

No comments posted yet

Your Answer:

Login to answer
304 Like 24 Dislike
Previous forums Next forums
Other forums

Run function every 5 mins ??
I have a function PostMessage()

How can I run it every 5 mins ??

Setting a default timezone?
I have read about how to change the timezone in PHPMYADMIN, but it changes back, it doesn't STAY the

firefox wouldnt stream mp3 files completely from my php page
hi everyone,
I have a php file trying to read and stream mp3 files. It works fine in IE but my pr

radio button reamains checked
Hello i'm trying to keep the state off my radio buttons so it shows which ones where clicked after t

Help? Need help on project with templates involving mysql and php.
I'm having a hard time explaining what I want but basically here is what I have in place:

-Da

Bar charts using Graphical Framework.
I am using Graphical Frameworks(GFW) to create a chart Graphic . There is no problem with the data d

Intrastat Report Config in ECC 6.0 - goods Movement in EU countries
Colleagues, need ur help to understand the changes require in ECC 6 standard Report configuration se

Echo-ing MySQL content and Keep Formatting?
I have data in my MySQL such as:

QuoteBlah blah

Blah blah

etc
but when i ech

Word filter problem
Hello,

im trying to make a filter for words inputted in to my website but i want to store the

UDS 4.0 Datatype issue
UDS 4.0.322 -- connecting to NI Labview 9.0

When using connection method: Cache with live

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash