Re: [PHP-WIN] PHP & Javascript

2007-04-19 Thread Mikael Grön
Yes, of course. Though, the security part of this should be in 'another.php' and focused on handling the incoming var from $_GET['UID']... On the JavaScript side of things, nothing but the client browser is vulnerable anyway. Mike Aleksandar Vojnovic skrev: And don't forget to add $thevari

Re: [PHP-WIN] PHP & Javascript

2007-04-18 Thread bedul
AIL PROTECTED]> To: "php windows" Sent: Wednesday, April 18, 2007 10:00 PM Subject: Re: [PHP-WIN] PHP & Javascript > Google! is your friend, but I acutally enjoy typing. :) > > Do something like this: > > > window.location="another.php?UID=<?

Re: [PHP-WIN] PHP & Javascript

2007-04-18 Thread Aleksandar Vojnovic
And don't forget to add $thevariablecontainingthenumbertwo = intval($thevariablecontainingthenumbertwo); or stripslashes Mikael Grön wrote: Google! is your friend, but I acutally enjoy typing. :) Do something like this: window.location="another.php?UID=$the

Re: [PHP-WIN] PHP & Javascript

Mikael Grön wrote: Google! is your friend, but I acutally enjoy typing. :) Do something like this: window.location="another.php?UID=$thevariablecontainingthenumbertwo; ?>";


or something like that. :)
You know, PHP parses befor

Re: [PHP-WIN] PHP & Javascript

Google! is your friend, but I acutally enjoy typing. :) Do something like this: window.location="another.php?UID=$thevariablecontainingthenumbertwo; ?>";


or something like that. :)
You know, PHP parses before the browser gets t

RE: [PHP-WIN] PHP & Javascript

Google is your friend: http://www.google.com/search?sourceid=navclient-ff&ie=UTF-8&rls=GGGL,GGG L:2006-19,GGGL:en&q=javascript+querystring -Original Message- From: Alf Stockton [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 8:05 AM To: php windows Subject: [

[PHP-WIN] PHP & Javascript

Please suggest a way to pass the value contained in a PHP variable to Javascript. I have $ID with a certain value in PHP and want to do a Javascript window.location="Another.php?UID="+2; and replace the above hardcoded 2 with the value in $ID. -- Regards, Alf Stocktonwww.stockton.co

Re: [PHP-WIN] PHP/Javascript question

yes, PHP only runs on the server side. No php code is transferred to the client, nor can it be run by the client. the browser only displays the output of the PHP code that the server executed. On Mon, 24 Jan 2005 13:50:18 -0600 (CST), phpWalter <[EMAIL PROTECTED]> wrote: > > > If I wanted to d

Re: [PHP-WIN] PHP/Javascript question

> If I wanted to detect a users screen resolution, would I be better off > using PHP (if possible) or JavaScript? You have to use JS and have it report back to your server so your PHP can work with it. Simple! ;) Walter -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP-WIN] PHP/Javascript question

If I wanted to detect a users screen resolution, would I be better off using PHP (if possible) or JavaScript? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] PHP & JavaScript

Hi everybody! Have somebody any idea how I could do something like that? var phpScreenWidth, phpScreenHight; phpScreenWidth = screen.width; phpScreenHeight = screen.height; "; echo "Height:|".$phpScreenHeight."|";

[PHP-WIN] php/javascript

Here's the deal: I have a page that has a "print" button on it that opens a new window that shows a "print-friendly" version of the page. The new window is opened via some javascript. I'm having problems with passing two variables to that page for querying purposes. Can anyone help? Thanks

[PHP-WIN] PHP / Javascript / MySQL / Anime

Hi all I have written a javascript menu using layers! This menu uses php to write the huge code and gets the content for the menu from a SQL database. If any of you are interested in getting the code, please mail me. !ALSO Completely off the topic of PHP, I am looking to increase my coll

Re: [PHP-WIN] PHP-> JavaScript

Hi Sichta, it's impossible to do this, alternatively, u can put id as a hidden value of a form and submit to specified page. -- regards, chen wei (http://www.cw213.net) === Solutions Developer of Earth9.com === Thursday, Septemb

[PHP-WIN] PHP-> JavaScript

Hi !! Is there any way to parse variable from JavaScript to PHP ? Something like: function xxx (id) { id; } DAN

Re: [PHP-WIN] PHP/Javascript

Mike is right - It's best to process everything on the server side and update the client side after everything has been updated (database, etc.) This requires some more coding (setting the drop boxes, text boxes to the same values that the user chose before "submitting"), but it's the safest way

RE: [PHP-WIN] PHP/Javascript

Good point. I personally do that every time -- I never rely on client-side script-produced values, I just use them for aesthetics -- so the user can see the changes right before their eyes before submitting. But if you say have 3 fields, A B and C where C is A*B, I will have PHP recalculate C

Re: [PHP-WIN] PHP/Javascript

You can do it either way. You can either have the user change values, then hit the "recalculate" or "update" button which calls the PHP script to update all values.. or you can use JavaScript to update some simple calculations immediately after the user makes any changes, but you still need to

[PHP-WIN] PHP/Javascript

This is what my screen looks like: I want to order ... description imagedropdown box @ 7.95 each = [text box] containing 0-20 numerics I had been contemplating using Java