RE: [PHP] JavaScript and PHP

2008-05-16 Thread Ford, Mike
page, because it is going to receive a parameter from the URL that calls it and pass it as is to template.php Mário: The key here to remember is that javascript uses ID and php uses NAME for inputs. That's incorrect. A form will function perfectly well with only name= attributes

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
/einstein.html Now, I need to make it a PHP page, because it is going to receive a parameter from the URL that calls it and pass it as is to template.php Mário: The key here to remember is that javascript uses ID and php uses NAME for inputs. That's incorrect. A form will function

[PHP] JavaScript and PHP

2008-05-14 Thread Mário Gamito
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 parameter from the URL that calls it and pass it

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
a parameter from the URL that calls it and pass it as is to template.php Mário: The key here to remember is that javascript uses ID and php uses NAME for inputs. So, if you put your variables in that form and they will work between javascript and php. Such as: input type=radio name=rad id=rad

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

[PHP] Javascript and PHP interaction

2007-03-08 Thread Alain Roger
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; $new_Width = somefunction(); print div class='childdiv' id='id_childdiv'

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
, January 12, 2006 2:51 AM Subject: [PHP] javascript in php page to use window.open() Hi everyone, I am trying to open a new window after a successful function call (I don't want to use a href. and onclick). Here's what I have, but for some reason, in IE the new window does not open (I have popup

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

2006-01-11 Thread Olga Urban
Hi everyone, I am trying to open a new window after a successful function call (I don't want to use a href. and onclick). Here's what I have, but for some reason, in IE the new window does not open (I have popup blockers disabled). It opens in Mozilla, but with the wrong size. What am I doing

[PHP] Javascript and php

2004-11-07 Thread Reinhart Viane
Hey all, 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 !-- Begin NewImg = new Array ( ?php while($row = mysql_fetch_object($result

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
. Regards, Bruno B B Magalhães On Nov 7, 2004, at 8:44 AM, Reinhart Viane wrote: Hey all, 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 !-- Begin

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

[PHP] JavaScript in PHP or PHP in JavaScript

2004-07-23 Thread Robb Kerr
be better? JavaScript in PHP ?php if (conditional) { ? several lines of JavaScript ?php } ? PHP in JavaScript script language=JavaScript several lines of JavaScript ?php if (conditional) { echo 'lines of JavaScript'; } else { echo 'other lines of JavaScript

[PHP] Javascript in PHP

2003-06-24 Thread [EMAIL PROTECTED]
How can I get a script to work on a page that has HTML generated by PHP and a javascript with functions called by an checkbox? javascript: function PrintScript(){ $js = function CheckBox1(); $js .= {var box1 = window.document.ctype.wr;var box2 = window.document.ctype.pfo;var box3

[PHP] javascript and php again

2002-11-13 Thread Edward Peloke
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 there a trick to this? Can this not be done? Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To

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

RE: [PHP] javascript and php again

2002-11-13 Thread Edward Peloke
so there is no way to use javascript and php together? 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 the options built from the db by mysql. Thanks, Eddie

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

[PHP] Javascript and PHP

2002-11-06 Thread vsv3
Hi. I'm not sure if is here where i have to ask this, but, if it's not i hope you say to me :D. 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. Thanks -- PHP General Mailing List (http://www.php.net

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

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
, 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 to do a bunch of string manipulations

[PHP] Javascript to PHP?

2002-06-29 Thread Jed Verity
Hello, Folks, My apologies if this has been asked a thousand times. I've just joined the list. 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

RE: [PHP] Javascript to PHP?

2002-06-29 Thread John Holmes
] Subject: [PHP] Javascript to PHP? Hello, Folks, My apologies if this has been asked a thousand times. I've just joined the list. 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

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

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

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
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 the distinction

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,

[PHP] javascript and php question

2002-06-05 Thread kemu
I have a page first he generates a var in javascript my next question is is it possible to use that var in php on the same page first he does the javascript then the php ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] javascript and php

2002-05-27 Thread burak delice
hi everyone, I want to make a php that include javascript that use a php variable. Code is below: ? $size = GetImageSize (images/$resim); echo script language=\JavaScript\ wdth=;$size;echo;; echo /script; ? (I am calling that php file as below) http://localhost/Aksu/web/getimage.php?resim

[PHP] javascript and PHP

2002-04-29 Thread Steve Buehler
Does anybody know of a good/short tutorial about passing variables from JavaScript to/from PHP? For example, how to do the following: html head SCRIPT LANGUAGE=JavaScript data = hello world; /script /head body ? echo $databr; ? /body /html The above might at least give me a clue. Just a note

RE: [PHP] javascript and PHP

2002-04-29 Thread Cal Evans
] Subject: [PHP] javascript and PHP Does anybody know of a good/short tutorial about passing variables from JavaScript to/from PHP? For example, how to do the following: html head SCRIPT LANGUAGE=JavaScript data = hello world; /script /head body ? echo $databr; ? /body /html The above might at least

[PHP] javascript and PHP

2002-04-29 Thread Steve Buehler
Ok. My last post didn't go throught the list software because of the tags. I am replacing the and 's with *'s now so that hopefully it will go through so that people can see it. --Original message Does anybody know of a good/short tutorial about passing variables from JavaScript

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

[PHP] Javascript and PHP??

2002-04-03 Thread Joe Keilholz
would I accomplish this in PHP? Can I incorporate Javascript into my PHP code? If so, how? Any help would be appreciated! Thanks! Joe Keilholz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Javascript and PHP??

2002-04-03 Thread Maxim Maletsky
: Thursday, April 04, 2002 1:12 AM To: [EMAIL PROTECTED] Subject: [PHP] Javascript and PHP?? Hello All! I think this is a pretty simple question. I have a file that I am writing information to and when the process is complete, I am needing to send the file to the user. In Javascript all I

Re: [PHP] Javascript and PHP??

2002-04-03 Thread Mikhail Avrekh
incorporate Javascript into my PHP code? If so, how? Any help would be appreciated! Thanks! Joe Keilholz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Javascript and PHP??

2002-04-03 Thread Jamie Watt
ed to do is window.open() and the file would be sent to the user (it's a .csv file). How would I accomplish this in PHP? Can I incorporate Javascript into my PHP code? If so, how? Any help would be appreciated! Thanks! Joe Keilholz -- PHP General Mailing List (http://www

[PHP] JavaScript and PHP

2001-12-09 Thread Jordan
Hey all, Just a quick question...how would you pass a PHP variable to a JavaScript function? -Jordan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail

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

2001-11-14 Thread Grimes, Dean
: [PHP] javascript to php Hi =) is it possible to pass a javascript array to php ??? thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

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

[PHP] javascript to php ????

2001-11-13 Thread fitiux
Hi =) is it possible to pass a javascript array to php ??? thanks.

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

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
it to your heart's delight. At 03:17 PM 11/13/2001, 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

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.

[PHP] javascript to php

2001-03-29 Thread cam k
does anyone know how to pass values in javascript variables to php variables?? Or a workaround if no direct solution... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

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

[PHP] Javascript and Php

2001-03-01 Thread kaab kaoutar
Hi! I'd like to include an inc file once a button id cliked! I tried calling that function: function more() { ?php include "sessions.inc"; ?; // var f=?php include "sessions.inc"; ?; document.form1.action="formhtl_rd.html";document.form1.submit(); } but it fails! Any idea Thanks

[PHP] javascript VS php

2001-03-01 Thread Miguel Loureiro
Hello all I would like to know if its possible from a javascript function call a php function (uiuiuiuiui...) ? This because I have a bidimensional array, and when user select a option of a checbox, on javascript function I read the selectedIndex and want to see the values of that name ( see

Re: [PHP] javascript VS php

2001-03-01 Thread Reuben D Budiardja
+, Miguel Loureiro wrote: Hello all I would like to know if its possible from a javascript function call a php function (uiuiuiuiui...) ? This because I have a bidimensional array, and when user select a option of a checbox, on javascript function I read the selectedIndex and want to see

[PHP] javascript in PHP statements

2001-02-15 Thread Matt Davis
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";"; Is

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";";

RE: [PHP] javascript in PHP statement

2001-02-15 Thread DanO
note that javascript and PHP CANNOT interact natively on the same page...one is client side and one is server side. you can pass variables between the two in an HTTP request, however. page1.php: script type=javascript function makeSqlQuery(businesstype,village) { var sqlQuery

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
TED] To: [EMAIL PROTECTED] Sent: Tuesday, January 16, 2001 10:04 AM Subject: [PHP] javascript and php 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 jav