[FX.php List] Pulling a Javascript variable into a PHP variable?
Leo R. Lundgren
leo at finalresort.org
Tue Mar 11 19:29:03 MDT 2008
Since PHP is on the server-side and Javascript is on the client-side,
you will have to send the variable data to the server. In short, you
need to make a http request to send it, such as a normal get/post or
an ajax request.
You DO mean a variable that you have on a client when it's viewing a
javascript html-page, right?
12 mar 2008 kl. 02.23 skrev Bob Patin:
> I have a Javascript variable "j" that I want to put into a PHP
> variable; is this doable?
>
> I tried this:
>
> <?php
> $image_counter = j;
> ?>
>
> but of course that didn't work...
>
> Thanks,
>
> Bob Patin
> Longterm Solutions
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
> Member of FileMaker Business Alliance and FileMaker TechNet
>
> CONTACT US VIA INSTANT MESSAGING:
> AIM or iChat: longterm1954
> Yahoo: longterm_solutions
> MSN: tech at longtermsolutions.com
> ICQ: 159333060
>
> --------------------------
> Contact us for FileMaker hosting and programming for all versions
> of FileMaker
> PHP • CDML • Full email services • Free DNS hosting • Colocation •
> Consulting
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
-|
More information about the FX.php_List
mailing list