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.

Did you know?Explore Trending and Topic pages for more stories like this.
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

date function help
i need help with date function

Code: [Select]<!DOCTYPE HTML PUBLIC "-//W3C//DTD H

contact form - output to page and email
I have the following in my controller:

$message['name'] = htmlentities(strip_tags(trim($_POST

Sort Alternative/bi-monthly
Hi all,

Am going mad trying to get something to work.

I'm creating a CMS for a magazi

some query on multilingual website
Hi all,

Which is the simplest and easiest method to make a website multilingual,
is it put

User registration and login
I don't know whether this is the correct forum, if not i apologise but am pretty desperate at the mo

puting for loop in 1 value
hi ,

how do i put this code in 1 value:
Code: <?php
for ($i=1; $i<=5; $i

Consuming MII WebService in Java WebDynpro
Hello,

We are facing a strange situation...

We define a transaction in MII to

Is there something wrong?
Hi all,

Just a quick question... can someone look at this code and see if something is wrong?

question about header() security
is is safe to just use the header() function to redirect someone if they are, say, not logged in? or

ereg_replace()
Basically what i need to do is

$title = "This Suck's"

$striped = ereg_repl

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