To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Tools > Misc Tools

Misc Tools Discussion regarding tools that don't have their own forum.

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-22-2003, 12:07 AM   #1
francis
Junior Member
 
Join Date: Aug 2003
Posts: 3
Configure PHPed SRV local web server to return value submited through URL?

I'm evaluating PHPEd ver. 3.2 build 3220 on a Windows XP box and need some help with configuring PHPED.

Following is my current configuration: Under Tools -Settings-Run Mode, I select HTTT Mode(SRV local web server).

As I understand, the SRV local web server works the same as Apache (I do not have Apache on my machine), "any request from a Web browser to the specified port is sent directly to the phpED server. Server modifies this request, passes it to php executable, captures an output returned from it and passes this output back to the browser" (php Help).


I created a simpler test code to test if the server is working. The argument pass through the URL didn't get return. The new test.php is shown below:

=============================
<html>
<head> </head>
<body>
<form method="GET" ACTION="test.php">
<input type="text" name="varName">
<input type="SUBMIT" value="Search">
</form>

<?php
echo "The user typed: $varName";
?>

</body>
</html>
================================


The first time this script is loaded, the form with "The user type:" is displayed. Each subsequent time a string, say "test string" is entered in the text box and submited through the URL, I expect the form to be reloaded with "The user type: test string" displayed, BUT "test string" wasn't returned, only the form and "The user type:".

PHP is working ("The user type:" is printed), however $varName wasn't passed back from the server.

Does anyone has experience with PHPED. Please shed some light on this. Is there any mapping I should set between the local web server and host ...etc?

Thanks,
Lang
francis is offline   Reply With Quote
Old 08-22-2003, 11:09 AM   #2
stolzyboy
Super Moderator
 
stolzyboy's Avatar
 
Join Date: Sep 2002
Location: Fargo, North Dakota
Posts: 6,647
replace this
PHP Code:
<?php
echo "The user typed: $varName";
?>
with this
PHP Code:
<?php
echo "The user typed: " . $_GET['varName'];
?>
__________________

http://www.codesight.net - Custom Web Development, Web Hosting, Web Consulting
stolzyboy is offline   Reply With Quote
Old 08-22-2003, 01:33 PM   #3
francis
Junior Member
 
Join Date: Aug 2003
Posts: 3
Thanks much! Fixed my probs.
francis is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 06:48 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.