Re: Server side issue with <form>
| From: | Roy W | Date: | Sun, 10 Jun 2007 19:50:14 +0000 |
| Subject: | Re: Server side issue with <form> | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-256563@lists.php.net to get a copy of this message | ||
Here is the code:
index.html
<html>
<body>
<form action="test.php" method="post">
Your name:
<input type="text" name="YourName"><BR>
Cost of a lunch:
<input type="text" name="CostOfLunch"><BR>
Days Buying Lunch:
<input type="text" name="DaysBuyingLunch"><BR>
<input type="submit">
</form>
</body>
</html>
--------------------------------------------
index.php
<?
$Today = date("1 F d, Y");
?>
<html>
<body>
Today's Date:
<?
print("<h3>$Today</h3>\n");
print("$YourName, you will be out ");
print($CostOfLunch * $DaysBuyingLunch);
print(" dollars this week.<BR>\n");
?>
</body>
</html>
--------------------------------------------
Returns:
Today's Date:
1 June 10, 2007
, you will be out 0 dollars this week.
Thanks in advance for any feedback!
"Tijnema" <tijnema@gmail.com> wrote in message
news:d8269d910706100751s12b6b9f3ubd83c2ed5624c813@mail.gmail.com...
On 6/10/07, Roy W <php@wiegmann.net> wrote:
> My host company must have an installation/configuration issue.
>
> Variables from forms are not being passed to the php scripts that are sent
> via <Form>
>
> Has anyone heard of this and know of the fix?
I don't think that's possible, please show us part of your code, as I
expect the problem to be there.
Tijnema