Re: Hide GET Variables --> Pass values using Session
From: Kenneth Downs (knode.wants.this_at_see.sigblock)
Date: 03/17/05
- Next message: cantelow_at_csd.net: "unresolved mysql_close at runtime"
- Previous message: Joshua Beall: "Re: Export Results in XML Format"
- In reply to: NSpam: "Re: Hide GET Variables --> Pass values using Session"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 17 Mar 2005 11:22:05 -0500
NSpam wrote:
> Kenneth Downs wrote:
>> André Gasser wrote:
>>
>>
>>>
>>>now my question is, if it's possible to hide those values, so they
>>>don't appear on the url, but sorting should work anyway. This means
>>>that
>>>
>>
>>
>> You need to know about the HTML technology of forms and the "post"
>> action, and the PHP array $_POST.
>>
>> Try this, then look up the HTML spec at www.w3c.org and reread the
>> tutorial to PHP:
>>
>> <form action="someprogram.php" method="post">
>> Type something here: <input name="test"/>
>> <button type="submit"/>
>> </form>
>>
>> Then make someprogram.php:
>>
>> <?php
>> echo "You entered: ".$_POST["test"];
>> ?>
>>
>> Whether or not you store these preferences in a session or a database is
>> another discussion.
> Yup use forms and/or sessions to hide the info, a database table is
> another option, guess it depends how sensitive the GET parms are. If you
> can then do it server side.
I've been meaning to run some definitive speed tests to determine relative
speeds of db queries vs includes (with various path depths) vs extra bytes
on the wire for hidden inputs, but I'm just too durn lazy, it keeps getting
pushed back.
-- Kenneth Downs Secure Data Software, Inc. (Ken)nneth@(Sec)ure(Dat)a(.com)
- Next message: cantelow_at_csd.net: "unresolved mysql_close at runtime"
- Previous message: Joshua Beall: "Re: Export Results in XML Format"
- In reply to: NSpam: "Re: Hide GET Variables --> Pass values using Session"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|