Joined: 21 Aug 2003 |
Posts: 1 |
|
|
|
Posted: Wed Aug 20, 2003 8:48 am |
|
|
|
|
|
Hi All,
I'm evaluating PHPEd ver. 3.2 build 3220. Under Tools -Settings-Run Mode, I select HTTT Mode(SRV local web server)l.
My SRV local web server does not parse php embedded in html body, my test.php file is below:
<html>
<head> </head>
<body>
<?php
function display($result)
......code to display
?>
<form method="GET" ACTION="test.php">
<input type="text" name="varName">
<input type="SUBMIT" value="Search">
</form>
<?php
}
else {
// Open the database connection
$connection = mysql_connect"localhost:54664", "root", "rootpass");
mysql_select_db("dbaseName", $connection);
//Query
$result = mysql_query(..............)
display($result);
mysql_close($connection);
}
?>
</body>
</html>
As I understand, the SRV local web server works the same as Apache, "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).
When test.php is executed, my form is display, when I enter a value and click submit, the there is nothing returned.
Is there something wrong with my setting?
Thanks,
|
|