0

Hi there I would be grateful if you could point me in the right direction with this issue please:

Only PAGE 1 loads regardless of content of $choice.

if ($choice='yes') {
?><script>location.replace("http://~PAGE 1");</script>
<?php
} else {
?><script>location.replace("http://~PAGE 2");</script>
<?php 
}

Thanks in advance

Stephen

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by stephen_UK
0

I'm not sure, but maybe try using if ($choice == 'yes')

Thanks for that. That has solved it. My original code had == but when it didnt work I tried a single =.

There must have been another fault which I solved in the mean time, but I had induced this fault along the way.

Cheers

Stephen

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.