I have the following simple example of two scripts that work well with wamp server:
The first (page1.html) enters a name and sends it to the server, and the second (page2.php) simply answered with echo the entered name.
The scripts are:
page1.html
<html>
<head>
<title>Data Entry Form </title>
</head>
<body>
<form method="post" action="page2.php">
Enter your Name:
<input type="text" name="Name">
<br>
<input type="submit" value="Confirm">
</form>
</body>
</html>
page2.php
<html>
<head>
<title>Data Echo Form</title>
</head>
<body>
<?php
echo "The entered name is:";
echo $_REQUEST['Name'];
?>
</body>
</html>
I would like in this simple example, compile only page2.php script, getting a page2.exe, and get the server response using the script page1.html in a normal browser.
For this, I compiled page2.php as a single file project, obtaining the page2.exe
and have changed in page1.html the line:
<form method="post" action="page2.php">
by:
<form method="post" action="http://heserver/page2.exe">
to access the compiled script page2.exe, but it does not work and the browser gives the error "server heserver not found "
What could be the problem?
Thanks in advance