[PHP] Re: PHP, Javascript, and Forms

2006-05-30 Thread Manuel Lemos
Hello, on 05/30/2006 11:03 PM Beauford said the following: I have a form with about 20 fields in it and have two drop down menus in which the second one changes depending on the previous one. This is done with a javascript which reloads the page. The problem with this is that everything the

[PHP] Re: PHP JavaScript

2006-05-19 Thread Daniel Orner
Jay Blanchard wrote: Can they play nicely together? For instance I have a small JavaScript sniplet that will check certain checkboxes if a radio button is selected. Since I have a fair amount of checkboxes I want to put them in an array all their own so I use the XHTML syntax w/brackets; input

[PHP] RE: PHP JavaScript

2006-05-19 Thread Jay Blanchard
[el snipo] For instance I have a small JavaScript sniplet that will check certain checkboxes if a radio button is selected. Since I have a fair amount of checkboxes I want to put them in an array all their own so I use the XHTML syntax w/brackets; input type=checkbox name=list37[] value=7 /

Re: [PHP] Re: PHP JavaScript

2006-05-19 Thread Angelo Zanetti
Daniel Orner wrote: Jay Blanchard wrote: Can they play nicely together? For instance I have a small JavaScript sniplet that will check certain checkboxes if a radio button is selected. Since I have a fair amount of checkboxes I want to put them in an array all their own so I use the XHTML

[PHP] Re: PHP JavaScript

2006-05-19 Thread Daniel Orner
function checkAll(field){ for (i = 0; i field.length; i++){ field[i].checked = true; } } 'length' is null or not an object Where is this being called from? Checkboxes don't have a length... if u declare is like name=list37 doesnt PHP get that as an array even though it doesnt

Re: [PHP] Re: PHP JavaScript

2006-05-19 Thread Dave Goodchild
Could you not use an id for the object as well as a name?

Re: [PHP] Re: PHP JavaScript

2006-05-19 Thread John Nichel
Angelo Zanetti wrote: Daniel Orner wrote: Jay Blanchard wrote: Can they play nicely together? For instance I have a small JavaScript sniplet that will check certain checkboxes if a radio button is selected. Since I have a fair amount of checkboxes I want to put them in an array all their

[PHP] Re: PHP / JavaScript integration

2005-03-08 Thread Jason Barnett
Mário Gamito wrote: Hi, I'm trying to integrate some JavaScript functions in PHP, but so far, no good :( ... How can i do this ? How to tell PHP, that def(word) is a JS function in js.php file ? I've tried include ('js.php'), etc., but got no results :( Any help would be apreciated.

[PHP] Re: PHP Javascript compatibilty

2002-11-29 Thread Kyle Gibson
I'm developing a WYSIWYG editor using PHP and Javascript (for COM). However, I start having problems when I try to display the page using the .php extension. The Javascript is not working. However, when I save it to HTML, it worked fine. Can anyone please help me? Why is this so? What can I do

[PHP] Re: php JavaScript

2002-06-24 Thread BB
Javascript is client side and is not parsed by the server at all If you are generating javascript with PHP, and it is in an external file, it still needs a .php extension Can you be more specific to the problem, paste some code? Luis Miguel N. Tavora [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: PhP Javascript Mixed Repost Fields

2002-04-01 Thread George Nicolae
in fooa.php for each textfield ? if (!empty($field1)) $value=$value; else $value=; ? input type=text name=textfield value=?echo $value;? so, when you come back from foob.php if a $field !empty the respective textfiel will have a value in html form; -- Best regards, George Nicolae IT Manager

[PHP] Re: PhP Javascript Mixed Repost Fields

2002-04-01 Thread George Nicolae
sorry the correct code is: in fooa.php for each textfield ? if (!empty($field1)) $value=$field1; ^^^ else $value=; ? input type=text name=textfield value=?echo $value;? so, when you come back from foob.php if a $field !empty the respective textfiel will

[PHP] Re: PHP-JavaScript

2002-02-25 Thread George Whiffen
Mëòv î‰çîÎ òsyïn wrote: Is it posible to get values from javascript to PHP? Without having to post the variables.. Thanks //Mårten _ Chatta med vänner online, prova MSN Messenger: http://messenger.msn.se I'm not quite sure

[PHP] Re: PHP-JavaScript

2002-01-20 Thread Andrew V. Romero
Would it be possible to have javascript insert a hidden input tag in the html and then php could pick it up? Just an idea, Andy Mëòv î‰çîÎ òsyïn wrote: Is it posible to get values from javascript to PHP? Without having to post the variables.. Thanks //Mårten

RE: [PHP] Re: PHP-JavaScript

2002-01-20 Thread Martin Towell
:11 PM To: [EMAIL PROTECTED]; =?iso-8859-1?Q?M=EB=F2v=20=EE=89=E7=EE=CE=20=F2sy=EFn?[EMAIL PROTECTED] Subject: [PHP] Re: PHP-JavaScript Would it be possible to have javascript insert a hidden input tag in the html and then php could pick it up? Just an idea, Andy Mëòv î?çîÎ òsyïn wrote