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

unoconv doc convert to pdf code prob
PHP/5.3.1

Hi. I am trying to use this code to convert docs to .pdf utilizing unoconv. Howe

Is it a good practice to store user info. in sessions?
I am making a user class for my script which stores all the user information in sessions. It takes u

server trace logs
could any one tell me from where do i get error logs in xMII??I want to check the reason for dtabase

How do I use ValidatorCallout extender in Login control?
Hi,I'd like to customize the look and feel of the login control a little bit. One thing I'd love to

problems with php variables in mysql query
i can't seem to get the following query to work.

select $q1c from $vote_rate where id = $re

Placing and array within an array then sorting it!
I have a page that runs two large mysql queries and saves the results into arrays, in php I then per

Needing Youtube thumb nail fix.
I have a script on a site that pulls in you-tube videos,
The problem is, that the thumb nails for

Passing an array of values From VB6.0 to Oracle PL/SQL Function
Basically we are using VB6.0.

When we try to pass an array from VB6.0 to an Oracle PL/SQL

help, header() is not working!
Hello, I have this code:


<?php

/**
* @author samoi
* @copyright 200

mail() problem
Hi Guys,

I've set up a contact email form. It sends the information fine, but it sends it to

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