|
Posted by Tom on 04/17/07 17:13
On Tue, 17 Apr 2007 09:30:45 -0500, DrNoose wrote...
>
>J.O. Aho wrote:
>> DrNoose wrote:
>>
>>> I must have something else wrong in my code; php probably. I tried your
>>> code and still didn't get the php file to work. Someone told me that my
>>> "id" and "name" in the properties box had to be the same. One of the
>>> examples in the book has them with different names. Will that make a
>>> difference?
>>>
>>
>> Use the following code and see what is sent to your page.
>>
>> --- PickAColor.php ---
>> <?PHP
>>
>> print_r($_POST);
>>
>> ?>
>> --- eof ---
>>
>Hi!
>
>When I run it, click a color and hit the submit button, it says "the
>page cannot be displayed (php file).
Might need to check your web servers error log to see if there's a specific
reason. Might be something as goofy as a case-sensitive file name (e.g.
"PickAColor.php" instead of "pickacolor.php") where it can't locate the file, or
might be pointing to the wrong location in your form's action.
If the file is there, maybe trying a simple test first to make sure you can get
PHP working in your configuration, such as...
<?php
phpinfo();
?>
Tom
--
Newsguy.com
90+ Days Retention
Higher levels of article completion
Broader newsgroups coverage
[Back to original message]
|