[Za-pm] Maintaining state
Werner Moller
wernerm at ifusion.co.za
Fri Sep 12 05:13:33 CDT 2003
What do you mean with CGI/ServerPage intervention? I'm open for any
suggestions.
The only thing I can think of is parsing it like so:
#!/usr/bin/perl
use CGI qw/:standard/;
# Define field variables here from MySQL data queries after login.
# Open DB etc...
$name = param('name'); # etc...
open HTML, "<htmlpage.html";
while (<HTML>) {
# code here with form fields containing perl variables as
values in html page.
# ...
print;
}
close HTML;
# End here
Do you think this will work? Still have the problem of parsing the values to
the next link though.
Cheers,
Werner
-----Original Message-----
From: Nico Coetzee [mailto:nico at itfirms.co.za]
Sent: 11 September 2003 17:01
To: Werner Moller; 'za-pm at mail.pm.org'
Subject: Re: [Za-pm] Maintaining state
Virtually impossible - you need some server side CGI/ServerPage
intervention.
On Thursday 11 September 2003 09:54, Werner Moller wrote:
> Hi Guys,
>
> I need to maintain state (cookies, variables, sticky widgets or something)
> on a website where users log in and need to retrieve their information.
> However, the html pages and forms have already been designed with
> DreamweaverMX which rules out dynamic page generation with CGI. How do I
go
> about retrieving information and placing it on the fields in the html
pages
> after the user have logged in? I've completed the "Registration" scripts
> which place the information into a MySQL database.
>
> Werner Moller
> _______________________________________________
> Za-pm mailing list
> Za-pm at mail.pm.org
> http://mail.pm.org/mailman/listinfo/za-pm
--
Nico Coetzee
http://www.itfirms.co.za/
http://za.pm.org/
http://forums.databasejournal.com/
To the systems programmer, users and applications serve only to provide a
test load.
More information about the Za-pm
mailing list