RE: [PHP] JavaScript and PHP

2008-05-16 Thread Ford, Mike
On 14 May 2008 21:21, tedd advised: At 7:31 PM +0100 5/14/08, Mário Gamito wrote: Hi, I have this HTML/JS page that switches images clicking on the radio buttons and call template.php with the image ID as parameter: http://portulan-online.net/einstein.html Now, I need to make it a PHP

RE: [PHP] JavaScript and PHP

2008-05-16 Thread Boyd, Todd M.
-Original Message- 8 snip! That's incorrect. A form will function perfectly well with only name= attributes, and no ids, and it's quite possible for JavaScript to address the form elements using only the names (in fact, it's easier than via the ids as there's a short syntax for

RE: [PHP] JavaScript and PHP

2008-05-16 Thread Ford, Mike
On 16 May 2008 16:12, Boyd, Todd M. advised: -Original Message- 8 snip! That's incorrect. A form will function perfectly well with only name= attributes, and no ids, and it's quite possible for JavaScript to address the form elements using only the names (in fact, it's easier

RE: [PHP] JavaScript and PHP

2008-05-16 Thread tedd
At 4:01 PM +0100 5/16/08, Ford, Mike wrote: On 14 May 2008 21:21, tedd advised: At 7:31 PM +0100 5/14/08, Mário Gamito wrote: Hi, I have this HTML/JS page that switches images clicking on the radio buttons and call template.php with the image ID as parameter:

Re: [PHP] JavaScript and PHP

2008-05-14 Thread Dan Joseph
On Wed, May 14, 2008 at 2:31 PM, Mário Gamito [EMAIL PROTECTED] wrote: Hi, I have this HTML/JS page that switches images clicking on the radio buttons and call template.php with the image ID as parameter: http://portulan-online.net/einstein.html Now, I need to make it a PHP page, because

Re: [PHP] JavaScript and PHP

2008-05-14 Thread tedd
At 7:31 PM +0100 5/14/08, Mário Gamito wrote: Hi, I have this HTML/JS page that switches images clicking on the radio buttons and call template.php with the image ID as parameter: http://portulan-online.net/einstein.html Now, I need to make it a PHP page, because it is going to receive a

Re: [PHP] Javascript and PHP interaction

2007-03-12 Thread Richard Lynch
What you *COULD* do is this: Use .htaccess to force your .css files to *really* be PHP files: Files ~.css ForceType application/x-httpd-php /Files [NOTE: Depending on your server configuration, the application/x-httpd-php part could be *ANYTHING* the sysadmin felt was appropriate...] Inside

Re: [PHP] Javascript and PHP interaction

2007-03-08 Thread Németh Zoltán
2007. 03. 8, csütörtök keltezéssel 09.14-kor Alain Roger ezt írta: Hi, I would like to know if there is a way how PHP code can extract from ElementID some property values. for example, i have the following PHP page : ?php print div class='maindiv' id='id_maindiv'my main div/div;

Re: [PHP] javascript in php page to use window.open()

2006-01-12 Thread Rodolfo Andrade
Hi Olga, Your Javascript window.open() is missing one argument, the name of the pop-up window: window.open(\add.html\,\MyWindowName\,\resizable=no,width=400,height=20 0\); Best Regards, Rodolfo Andrade - Original Message - From: Olga Urban To: php-general@lists.php.net Sent: Thursday,

Re: [PHP] Javascript and php

2004-11-07 Thread Jordi Canals
On Sun, 7 Nov 2004 11:44:33 +0100, Reinhart Viane [EMAIL PROTECTED] wrote: Hope some of you also work on sundays :) I have a little javascript which displays a images (with previous / next thing) Now, i populate the javascript array with an php array: SCRIPT LANGUAGE=JavaScript !--

Re: [PHP] Javascript and php

2004-11-07 Thread Bruno B B Magalhães
Reinhart, ?php for($i = 0; $i mysql_num_rows($result)-1; $i++) { $row = mysql_fetch_object($result); echo ''.$row-picture_url.''; if($i = mysql_num_rows($result)-2) { echo ','; } } ? Here is how I do in my developments.

RE: [PHP] Javascript and php

2004-11-07 Thread Reinhart Viane
PROTECTED] Subject: Re: [PHP] Javascript and php Reinhart, ?php for($i = 0; $i mysql_num_rows($result)-1; $i++) { $row = mysql_fetch_object($result); echo ''.$row-picture_url.''; if($i = mysql_num_rows($result)-2) { echo

Re: [PHP] javascript and php again

2002-11-13 Thread Marek Kilimajer
php doesn't understand javascript, php executes on the server and javascript on the client side. Edward Peloke wrote: I have some javascript that by itself, runs fine in a php file but, when I enclose it in php... ? if (!variable) { ? ---insert java here ? } ? Then is does not work...is

RE: [PHP] javascript and php again

2002-11-13 Thread Edward Peloke
-Original Message- From: Marek Kilimajer [mailto:kilimajer;webglobe.sk] Sent: Wednesday, November 13, 2002 2:43 PM To: PHP Subject: Re: [PHP] javascript and php again php doesn't understand javascript, php executes on the server and javascript on the client side. Edward Peloke wrote: I

Re: [PHP] javascript and php again

2002-11-13 Thread Chris Boget
so there is no way to use javascript and php together? No, not really. Not in the way you are hoping. If not, can php do some of the cool things that javascript does? The main thing I am looking for is a somthing like this: http://www.dynamicdrive.com/dynamicindex1/popit.htm but I want

Re: [PHP] Javascript and PHP

2002-11-06 Thread Chris Hewitt
[EMAIL PROTECTED] wrote: Well the question is: i want to know how can i make to insert into the $_GET or $_POST arrays, an entry with a value from javascript. All the php processing (on the server) is complete before the javascript processing (on the client) commences, so you would need to

Re: [PHP] Javascript and PHP

2002-11-06 Thread Tom Rogers
Hi, Wednesday, November 6, 2002, 2:52:31 AM, you wrote: vaue Hi. I'm not sure if is here where i have to ask this, but, if it's vaue not i hope you say to me :D. vaue Well the question is: i want to know how can i make to insert into vaue the $_GET or $_POST arrays, an entry with a value from

Re: [PHP] Javascript to PHP?

2002-07-01 Thread Erik Price
On Saturday, June 29, 2002, at 03:13 PM, Jed Verity wrote: I can't find any information on passing JavaScript variables to PHP on the same page (i.e. not through the POST information of a submitted form). Is this because it's not possible? To take the load off the server, I'm trying

Re: [PHP] Javascript to PHP?

2002-07-01 Thread Jed Verity
Thanks for the response, Erik! I think I will try passing the data in a cookie to a hidden frame, refreshing the frame, and then reading the data back. Many thanks to all for the suggestions! Cheers, Jed I liked it when Erik Price wrote this to me: On Saturday, June 29, 2002, at 03:13 PM,

RE: [PHP] Javascript to PHP?

2002-06-29 Thread John Holmes
Not possible. You must refresh the page to send something back to PHP. Only workaround is using a hidden frame or layer and refreshing that... ---John Holmes... -Original Message- From: Jed Verity [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 29, 2002 3:14 PM To: [EMAIL PROTECTED]

Re: [PHP] Javascript to PHP?

2002-06-29 Thread Pushkar Pradhan
I've done this stuff recently. I need to pass whole arrays betn. php and Javascript (2-way), here is some code: // PHP var. to JS function arrFromStr (str2convert) { // make an array from string arr = new Array(); var posOfQt1 = str2convert.indexOf('\'); var posOfQt2 =

Re: [PHP] Javascript to PHP?

2002-06-29 Thread Chris Shiflett
Jed Verity wrote: I can't find any information on passing JavaScript variables to PHP on the same page (i.e. not through the POST information of a submitted form). Is this because it's not possible? Basically, this is not possible. A common area of confusion to those new to Web programming is

RE: [PHP] Javascript to PHP?

2002-06-29 Thread David Freeman
My apologies if this has been asked a thousand times. I've just joined the list. I has, but you get that... I can't find any information on passing JavaScript variables to PHP on the same page (i.e. not through the POST information of a submitted form). Is this because it's not

RE: [PHP] Javascript to PHP?

2002-06-29 Thread Mark Charette
Or setting a cookie in JavaScript. It will be transmitted on the next page request. -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 29, 2002 3:30 PM To: 'Jed Verity'; [EMAIL PROTECTED] Subject: RE: [PHP] Javascript to PHP? Not possible. You must

Re: [PHP] Javascript to PHP?

2002-06-29 Thread Jed Verity
Hello, Chris, Many thanks for the thorough description. It does make sense, of course...I was just hoping that there was some kind of funky loophole that small brains like mine couldn't comprehend. Thanks again! Jed I liked it when Chris Shiflett wrote this to me: Jed Verity wrote: I

RE: [PHP] JavaScript to PHP?

2002-06-29 Thread Bruce Karstedt
] Subject: Re: [PHP] Javascript to PHP? Importance: Low Hello, Chris, Many thanks for the thorough description. It does make sense, of course...I was just hoping that there was some kind of funky loophole that small brains like mine couldn't comprehend. Thanks again! Jed I liked it when Chris

Re: [PHP] Javascript to PHP?

2002-06-29 Thread Mark
On Sat, 29 Jun 2002 16:58:50 -0300, Jed Verity wrote: Hello, Chris, Many thanks for the thorough description. It does make sense, of course...I was just hoping that there was some kind of funky loophole that small brains like mine couldn't comprehend. well if it's one-way only communication,

RE: [PHP] javascript and PHP

2002-04-29 Thread Cal Evans
since php runs on the server, not on the client, you have to pass the value of data back to the server. Normally, this is done via a GET or a POST from a form or by building a URL and using javascript to load it. (i.e. document.location = 'http://myserver.com/mypage.php?data=Hello%20World';)

Re: [PHP] javascript and PHP

2002-04-29 Thread 1LT John W. Holmes
All you can do is use PHP to print out Javascript code. ? $data = hello world; ? script language=javascript var something; something = '?=$data?'; /script etc...It's no different than using PHP to print out HTML code. Now, if you want to get that Javascript variable something sent back to PHP,

RE: [PHP] javascript and PHP

2002-04-29 Thread Leotta, Natalie (NCI/IMS)
. Holmes [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 11:40 AM To: [EMAIL PROTECTED]; Steve Buehler Subject: Re: [PHP] javascript and PHP All you can do is use PHP to print out Javascript code. ? $data = hello world; ? script language=javascript var something; something = '?=$data

RE: [PHP] Javascript and PHP??

2002-04-03 Thread Maxim Maletsky
Use header to start file download: http://www.php.net/manual/en/function.header.php Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Joe Keilholz [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] Javascript and PHP??

2002-04-03 Thread Mikhail Avrekh
You can say something like: ?$csv_filename= whatever.csv;? script language=javascript window.open(?=$csv_filename?, target, resizable,status,width=500,height=200); /script On Wed, 3 Apr 2002, Joe Keilholz wrote: Hello All! I think this is a pretty

Re: [PHP] Javascript and PHP??

2002-04-03 Thread Jamie Watt
?php header(Location: $csv_filename); ? Mikhail Avrekh [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You can say something like: ?$csv_filename= whatever.csv;? script language=javascript window.open(?=$csv_filename?, target,

RE: [PHP] javascript to php ????

2001-11-14 Thread Grimes, Dean
One way I do this is with the following: ?php if ($submit) { // Create a php array. $t_array = explode(,,$x_array); print_r($t_array); exit; } ? html head script language=javascript var x = new Array(); x[0] = zero; x[1] = one; x[2] = two; /script /head body

Re: [PHP] javascript to php ????

2001-11-14 Thread Mike Eheler
No. You have to realise that JavaScript is client side, and PHP is server side, so -- apart from inserting those javascript values into a form and submitting it using code -- PHP and JavaScript cannot interact. Mike fitiux wrote: Hi =) is it possible to pass a javascript array to php ???

RE: [PHP] javascript to php ???????

2001-11-14 Thread Mark
To: [EMAIL PROTECTED]; PHP General Subject: RE: [PHP] javascript to php ??? On Wed, 14 Nov 2001 10:16:42 +1100, Martin Towell wrote: serialise the array and make the value of a hidden field this value. Then in PHP unserialise it. that would work great if it were a php array, but I believe we're

Re: [PHP] javascript to php ????

2001-11-13 Thread Mark
On Tue, 13 Nov 2001 19:53:48 -0300, fitiux wrote: Hi =) is it possible to pass a javascript array to php ??? by the time javascript comes into play, php has already done it's job and left the building. If you mean can javascript pass variables to a new request for php to handle, then sure.

Re: [PHP] javascript to php ???????

2001-11-13 Thread fitiux
Hi =) is it possible to pass a javascript array to php ??? by the time javascript comes into play, php has already done it's job and left the building. If you mean can javascript pass variables to a new request for php to handle, then sure. Thanks for your reply. =) I have a little

RE: [PHP] javascript to php ???????

2001-11-13 Thread Martin Towell
serialise the array and make the value of a hidden field this value. Then in PHP unserialise it. -Original Message- From: fitiux [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 10:18 AM To: PHP General Cc: [EMAIL PROTECTED] Subject: Re: [PHP] javascript to php ??? Hi

Re: [PHP] javascript to php ???????

2001-11-13 Thread Mark
On Tue, 13 Nov 2001 20:17:32 -0300, fitiux wrote: Hi =) is it possible to pass a javascript array to php ??? by the time javascript comes into play, php has already done it's job and left the building. If you mean can javascript pass variables to a new request for php to handle, then

RE: [PHP] javascript to php ???????

2001-11-13 Thread Mark
: fitiux [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 10:18 AM To: PHP General Cc: [EMAIL PROTECTED] Subject: Re: [PHP] javascript to php ??? Hi =) is it possible to pass a javascript array to php ??? by the time javascript comes into play, php has already done it's job

Re: [PHP] javascript to php ???????

2001-11-13 Thread Richard S. Crawford
Why, sure! In your FORM tag, use ACTION=test.php. You can send your JavaScript variable as part of the form, in a hidden form field such as INPUT TYPE=hidden VALUE=myValue. The value of the variable will be available the next time test.php shows up as $myValue. You can then manipulate it

RE: [PHP] javascript to php ???????

2001-11-13 Thread Martin Towell
14, 2001 10:28 AM To: [EMAIL PROTECTED]; PHP General Subject: RE: [PHP] javascript to php ??? On Wed, 14 Nov 2001 10:16:42 +1100, Martin Towell wrote: serialise the array and make the value of a hidden field this value. Then in PHP unserialise it. that would work great if it were a php array

Re: [PHP] javascript to php ???? THANKS =)

2001-11-13 Thread fitiux
Thanks to all for help me.. =) I hope to help someone soon. --Patricio.

Re: [PHP] javascript to php

2001-03-29 Thread Jack Dempsey
what exactly are you trying to do? pass variables to a php script? then use a form with POST or GET...not that simple? describe better what you're doing then... -jack cam k wrote: does anyone know how to pass values in javascript variables to php variables?? Or a workaround if no direct

Re: [PHP] Javascript and Php

2001-03-02 Thread Christian Reiniger
On Thursday 01 March 2001 13:19, you wrote: I'd like to include an inc file once a button id cliked! You can only request a new page. Period. PHP runs on the server, button clicks are evaluated on the client (browser). -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The use

Re: [PHP] javascript VS php

2001-03-01 Thread Reuben D Budiardja
Javascript (js) is client side and PHP is server side. So what you can do to call the php function is by re-submitting the page, with somekind of a flag from the js to call the php function. You write the php parts like: if($flag) callTheFunctions(args); Reuben D. B At 04:28 PM 3/1/01

Re: [PHP] javascript in PHP statement

2001-02-15 Thread Michael Hall
I am new to php and I am wondering if it is possible to use a javascript variable in a php statement for example: // create sql statement $sql = "select * from main where businesstype = "consultancy" and top.upper.villagename = != "0";"; As far as I know, no. Unless

RE: [PHP] javascript in PHP statement

2001-02-15 Thread DanO
age with control structures on it. DanO -Original Message- From: Michael Hall [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 12:06 PM To: Matt Davis Cc: [EMAIL PROTECTED] Subject: Re: [PHP] javascript in PHP statement I am new to php and I am wondering if it is possibl

Re: [PHP] javascript and php

2001-01-16 Thread Soeren Staun-Pedersen
It is easy to generate javascript through php,but how to call php through javascript. In fact, I'd like to update some form fields according to events on other fields. I can do this using javascript, but the values should be readed in a MySql database. You're in a serverside, clientside

Re: [PHP] javascript and php

2001-01-16 Thread Jørg V . Bryne
ascript, but the values should be readed in a MySql database. Thank's Patrice - Original Message - From: "Soeren Staun-Pedersen" [EMAIL PROTECTED] To: "Patrice ROTH" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, January 16, 2001 10:08 AM Subject: Re: [PHP] javascri