Date: 06/27/01
- Next message: marion schmid: "Re: [phplib] hidden variable or session variables?"
- Previous message: chris: "[phplib] include_path error"
- In reply to: Ralf Pfeiffer: "[phplib] hidden variables - session variables?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi
I think you can implement any of them
Hidden variables is the easiest way, and in my opinion the natural way to go
with the HTTP protocol (this is my personal choice whenever possible )
Session variables lets you keep the value of the variables through and
entire application (made of several pages) is harder to implement (you
should know how sessions work and you will need to store the values on the
server in files or DB) but much more powerful
If your string value isn't so big (thouthands of bytes) and you need to keep
its value through one unique script and also hide the string value from
visitors isn't a concern to you then hidden variables are the way to go (in
my opinion)
I hope you can guess which approach is closer to your needs
Lazaro
----- Original Message -----
From: Ralf Pfeiffer <rpfeiffer <email protected>>
To: <phplib <email protected>>
Sent: Wednesday, June 27, 2001 10:24 AM
Subject: [phplib] hidden variables - session variables?
Hello,
my problem: by a contact form - with the input-fields name, city, price -
the values of this variables are given to a php-script, which will do a
mysql-query. The results of this query are given out with the same
php-script in form of a table with the fields name, city, price. Over the
variable $Sortieren (with $Sortieren = name or city or price) in the
Select-Clause: ,select ......where ..... order by $sortieren', I can sort
the table -records with a new query. Now my problem: for this new query, i
need the values given by the contact form (values for name, city, price),
otherwise the query doesn't work. How can I store this variables in the
php-script? I think, this has something to do with hidden or session
variables or? Anybody has an idea?
Greetings Ralf
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: marion schmid: "Re: [phplib] hidden variable or session variables?"
- Previous message: chris: "[phplib] include_path error"
- In reply to: Ralf Pfeiffer: "[phplib] hidden variables - session variables?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

