Re: [PHP-WIN] PHP & Javascript
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
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
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 & Java
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:
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
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