View Full Version : Next page selection

09-20-2008, 01:10 PM
I'm not sure this is such a popular one which seems a good enough reason to post it...

I have a series of images where any number can be selected by clicking on them. After submitting using a button the user is then directed to another page - here I want that the same images that were selected in the previous page to be selected.

Does anyone know how I could do this?

Similarly I will want to mail this information to myself..

09-21-2008, 02:32 AM
To mail this to yourself would be easy.
Here's a simple way to do what you want that requires Javascript.

<script type="text/javascript">
function changeValue(valC,elCh){
<img src="http://puppywar.com/images/cards/31309.jpg" onClick="changeValue('4','hiddenEl');" ?>
<input type="hidden" value="null" id="hiddenEl" name="numbers"/>

There's a hidden element called "numbers," if you need any help embedding this into php, just tell me. I'd be happy to help.

09-22-2008, 08:46 PM
Great answer..

ummm.. help embedding this into php would be unreal - I'm hardly an expert as you may well have guessed and really could do with all the help that I can get.


09-23-2008, 05:01 PM
Is 'changevalue' really a valid action (within the coding)?

09-27-2008, 11:51 AM
I appreciate your suggestion here but I really need some more guidance as it is not working for me..

_with appreciation