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
-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
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:
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
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
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
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;
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,
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
!--
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.
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 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
-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
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
[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
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
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,
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]
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 is
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
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
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
]
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,
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';)
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
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:
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
?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,
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
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
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, then
: 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
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
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.
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
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
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
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
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
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
51 matches
Mail list logo