Page 1 of 1
Choose picture in server
Posted: Mon May 03, 2010 12:12 am
by xionhack
Hello. I have a register form and in the form, the person can choose a picture that they like. The only thing is that the picture is not going to be uploaded but its already in the server and they have to choose it from the server. How can I do that? Thanks!
Re: Choose picture in server
Posted: Mon May 03, 2010 5:03 pm
by minorDemocritus
I would create a simple gallery with radio buttons, and have that as part of the form. Use something like this:
Code: Select all
<input type="radio" name="picture" value="pic1" /><img src="pic1.png" /><br />
<input type="radio" name="picture" value="pic2" /><img src="pic2.png" /><br />
<input type="radio" name="picture" value="pic3" /><img src="pic3.png" /><br />
Then in the form processing script, check the value of $_POST['picture'] or $_GET['picture'] for the result.