Hello all.
I have connected a databse, all is ok but i’d like to link the drop down option so when the user selects his/her name it will go to a page with their info on it. Preferably on the same page. but for now i have it on a separate one.
The db is providing the info but the link doesn’t seem to work
Not done this one before hope i can get some advice.
Thank you
D
Well you can’t put links, <p> tags etc inside select options. The select should be in a form tag and the select should have a name attribute. This sample has the form action attribute pointing to the same page and I assigned the id as the option value. I’m sure you have other code on your page, but at the TOP before output to the browser you can check for the POST and use a header to direct user to the details page. This is just a sample based on what you have.
Thank you Rubble & Drummin will try out the suggestions. see if i can put it up on my live server over the weekend and get it to work.
And yes rubble it was a dropdown list.
D