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
-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
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
/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
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
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
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
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
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'
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;
, 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
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
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
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
.
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
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
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
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
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
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
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
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
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
[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
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
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
, 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
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
]
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
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
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
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
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
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
]
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
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,
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
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
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
]
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
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
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
. 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
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
: 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
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
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
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
: [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
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
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
Hi =)
is it possible to pass a javascript array to php ???
thanks.
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
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
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
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
: 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
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
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
Thanks to all for help me..
=)
I hope to help someone soon.
--Patricio.
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
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
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
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
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
+, 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
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
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";";
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
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
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
71 matches
Mail list logo