Re: Javascript and forms in PHP
| From: | Info@Best-IT | Date: | Wed, 25 Jun 2003 13:13:50 +0000 |
| Subject: | Re: Javascript and forms in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152760@lists.php.net to get a copy of this message | ||
I understand perfectly well what PHP does. That is why I am confused that
if HTML including javascript within <script> tags, generated by PHP and sent
to the browser, is not working. I have checked for unique names and they
are all unique. I will try your suggestion with the form tags, I have not
tried that yet.
/T
on 6/25/03 8:03, Chris Hayes at chayes@antenna.nl wrote:
> At 14:55 25-6-03, you wrote:
>> Is there a limitation in PHP with Javascript and forms?
> Your question shows you do not have a clear idea of what PHP does and where
> javascript comes in. Please do a Google on this combination.
>
> The short of it: PHP builds a HTML/javascript page and sends it to the
> browser. PHP is done there. The browser now only sees HTML with javascript.
> But please find more elaborate texts.
>
>> I have a problem
>> when creating a form within a table with Checkboxes and the accompanying
>> javascript to govern the checks.
>>
>> I am generating the html for a table the first of 10 cells has 3 checkboxes.
>> I have experimented whether to make the form begin at the table tag, and
>> make multiple forms with different names at each table row. Generating the
>> HTML is easy but getting the javascript to work has been unsuccessful...
>
> 1. i found it works best to do something like <form<table></table></form>
> ,
> prevent overlapping.
> 2. are you sure your form elements have unique names?
> 3. are you sure the javascript is working on the correct form/form element?
> 4. do you know the javascript term "this" ?
>
>