RE: [PHP] PHP & html local testing
| From: | Jason Wong | Date: | Thu, 10 Aug 2000 06:18:19 +0000 |
| Subject: | RE: [PHP] PHP & html local testing | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11070@lists.php.net to get a copy of this message | ||
Andrew
do you actually have a webserver setup locally? If you're just *loading*
the local file into your browser then it wouldn't work. You need to
access the file *through* a webserver.
hth
-
Jason Wong
Digital View Ltd
2201 Nanyang Plaza
57 Hung To Road
Kwun Tong
HONG KONG
Tel: +852-2861-3615
Fax: +852-2520-2987
www.digitalview.com
-----Original Message-----
From: Andrew V. Romero [mailto:Rome232ro@pharmacy.arizona.edu]
Sent: 10 August 2000 13:40
To: php-general@lists.php.net
Subject: Re: [PHP] PHP & html local testing
Here is a copy of the html form I am trying to use (just something
simple)
<body> <form METHOD="POST" action="form2.php3">Enter
Number <input
size=3 maxlength=3 NAME="x">Enter Second Number <input size=3
maxlength=3 name="y"><input TYPE="Submit" Value="Enter These
Numbers"></form>
</body></html>
Then I am just trying to pass it to a php file in the same directory,
just
for fun like this one:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>test</title>
</head>
<body>
<?php
// request.phtml file. This is a comment line
// the comment must be in the PHP block
echo "thanks for the time <br>";
echo "X: $x <br>";
echo "Y: $y <br>";
?>
</body> </html>
When on the form and php file are on the remote server, it returns
exactly
what you expect it to, thanks for the time and then the values of X and Y
but when I load this form into my borwse using the local copy of the
form,
the submit button does nothing. Why is that?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net