PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi i am very new to PHP and think that this may be a case of trying to run before i can walk.
What i am trying to do is create a form that allows me to update a users details, sound easy enough i know.
The way that i am doing this is by using a dynamic drop down menu containing the users first and last names to select the user i want to update.
on clicking the 'submit' button what i want to happen is to pass the id of the user that i have selected to a form where the rest of that users details will be populated from the database, i can then change and update the details.
So far i have managed to write the script for selecting the user, but i am having trouble with passing the users id onto the next form.
I have posted what i have done so far bellow.
If anyone can help it would be much appreciated as i think i might go mad soon
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Check the doc and learned. Didn't now about the difference that the single-quotes (which I actually forgot in my reply) makes withing the square-brackets. I thought my way was the only correct way of getting an array to expand within a string. So the following are both correct:
That has helped, i have got the drop down workinmg properly and now see that i need to call the select name into the next page to get it to call the rets of the users details from the database.
I will let you know how this goes, doubless will not be as straight forward as i think, but thems the joys of learning new things.
Tom420 wrote:Check the doc and learned. Didn't now about the difference that the single-quotes (which I actually forgot in my reply) makes withing the square-brackets. I thought my way was the only correct way of getting an array to expand within a string. So the following are both correct: