Page 1 of 1

Get works on Serves, but not on the localserver.

Posted: Wed Jan 14, 2004 8:01 am
by Shendemiar
I'd need to test my stuff on localserver, but this part dont work on local... Can someone say if there something obvious.

And what's the id tag on form for?

Receive:

Code: Select all

$x1==$_GETї'x1'];
    $x2==$_GETї'x2'];
    $y1==$_GETї'y1'];
    $y2==$_GETї'y2'];

echo "Data received: x1:".$x1." x2:".$x2." y1:".$y1." y2:".$y2;
And Send:

Code: Select all

<?php echo "<img src="".$imagepath."buttons/map_free_select.gif""; ?>
            width="110" height="31"

             onClick="submitForm()"
             onmouseover="this.style.cursor='hand'; window.status='Submit the values'; return true"
             onmouseout="window.status='Done'"

             ></p>
              </td>
            <td align="left" valign="top" class="cell_left"><form action="map2.php" method="get" name="form" target="_map" id="map2.php">
It works fine over the net, but local gives just empty variables:

http://localhost/mu/map2.php?x1=5&x2=10&y1=5&y2=10

but the document says:

Data received: x1: x2: y1: y2:

Posted: Wed Jan 14, 2004 8:16 am
by twigletmac
Which version of PHP do you have locally and which OS and webserver are you using?

Mac

Posted: Wed Jan 14, 2004 8:40 am
by Shendemiar
I have many pages with _get that work fine on both endes, so i guess it's not an issue of compatibility.

Posted: Wed Jan 14, 2004 11:24 am
by dull1554
why are there double equals???

Code: Select all

$x1==$_GET['x1']; 
    $x2==$_GET['x2']; 
    $y1==$_GET['y1']; 
    $y2==$_GET['y2'];
????????????

Posted: Wed Jan 14, 2004 12:10 pm
by Shendemiar
No, im dummy and that's just to make it clearer.