NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
$_REQUEST not working with PHPED supplied Web Server


Joined: 13 Nov 2004
Posts: 12
Reply with quote
Hello,
I'm just starting to learn - PHP; I trying some sample code from a PHP book. The code is trying to pass data between 2 pages.

Page1.php - the fm variable is defined
echo "<a href='http://localhost/moviesite.php?fm=Stripes'>";

Page2.php
echo "My Favorite Movie is ";
echo $_REQUEST['fm'];

Now for some reason if I use the PHPEd integrated server - the code does not work - $_REQUEST ['fm'] is undefined.

However, if I start the APACHE server - supplied with the Tech Platform and copy the same 2 files to the APACHE server - everything works fine!

Am I missing some configuration in the IDE - so that the code would work correclty in the IDE with the integrated web server? IDE Version 3.3.3 (Build 3395); PHP Version 4.3.9; Running on Windows XP -
View user's profileFind all posts by JSSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
embedded webserver runs on 8080 port (by default) and therefore the link should be of something like http://localhost:8080/blahblahblah
View user's profileFind all posts by dmitriSend private messageVisit poster's website
$_REQUEST not working with PHPED supplied Web Server
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic