Get works on Serves, but not on the localserver.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Get works on Serves, but not on the localserver.

Post 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:
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Which version of PHP do you have locally and which OS and webserver are you using?

Mac
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Post by Shendemiar »

I have many pages with _get that work fine on both endes, so i guess it's not an issue of compatibility.
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

why are there double equals???

Code: Select all

$x1==$_GET['x1']; 
    $x2==$_GET['x2']; 
    $y1==$_GET['y1']; 
    $y2==$_GET['y2'];
????????????
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Post by Shendemiar »

No, im dummy and that's just to make it clearer.
Post Reply