Hi,
Please bare with me on this cos I've found it difficult to explain.
I've been making a four step html form for booking a performance (i.e. select a performance, fill out no. of tickets etc, preview, thank you page).
I've written the script so that each of the four pages is echoed in their own function and uses a hidden field in each page to call the next function :
//performer images
$i1 == "<img src=\"image1.jpg\" width=\"84\" height=\"136\">";
$i2 == "<img src=\"image2.jpg\" width=\"84\" height=\"136\">";
//performer's names
$n1 == "whoever";
$n1 == "someone";
if ($page1 == "book") {
$performer_image == $i1;
$performer_name == $n1;
function2();
}
elseif ($page2 == "book") {
$performer_image == $i2;
$performer_name == $n2;
function2();
}
... and then use hidden input and global to pass the variables $performer_image and $performer_name on to each of the other pages.
Basically, each performance has its own image and, depending on what performance is chosen, I want that image to appear on each booking page. As if each performance has its own booking section of the website. That's were my problem is. As the performances will change every month, I thought it would be easier if I made a variable for each image and used hidden input and global to pass it on to each page.
This works for text:
<input type=\"hidden\" name=\"performer_name\" value=\"$performer_name\">
but when I use a hidden field to attempt to pass on my image it's not working:
<input type=\"hidden\" name=\"performer_image\" value=\"$performer_image\">
Is there an easier way to do this??
It's frustrating because it's working for text and not my image tag.
Hope it makes sense.
Any help would be appreciated,
Chris