Bonjour!
I have searched the forums (and had a little success) - but have not found a solution to my problem...
I might be naive in not seeing this solution, but it is causing me hours of trauma! When it should be such a simple solution!!
Here is the scenario...
I have a page where a user clicks the button to open a popup window...this popup window contains a table of colours...when the user selects the color the window closes and the value they slected is returned to the relevant form text field... ok so far?
This all works ok.... I have two text fields..
<input type=text name=colour1>
<input type=text name=colour2>
..which when the popup window closes the value is returned to..
...the trouble is: I need to let the popup window know which text field to return the value to. I thought the best way of doing this was to have a form button which opens up the popup window.
The popup window URL is:
colourpopup.php and the variable is called "id"
so if the user wanted to populate the first colour text field, the popup window URL would be
colourpopup.php?id=1 and id=2 for the second.
My problem comes when I try to retrieve this variable within the popup window. I tried at first to simply output the result of the variable, but nothing happened. I used the following code:
<?php
echo "$id";
?>
I thought that should have worked!! But it doesnt!
Can someone please help me!!
If you are unsure about anyhting, (and I'm sure you might be?!!!!) just ask!
Cheers ears...
Matt.