Re: Displaying fetched values in html form

2006-06-13 Thread Jonathan Mangin

- Original Message - 
From: Kevin Moore [EMAIL PROTECTED]
To: DBI List dbi-users@perl.org
Sent: Monday, June 12, 2006 5:50 PM
Subject: Displaying fetched values in html form


 I'm not sure if this is the right forum so i'd appreciate pointers to 
 the correct place if i'm wrong.
 
 I've got DBI running between apache and an Oracle 10gR2 database. I can 
 insert data with no problem. Here's what i'm attempting to do.
 
1. Put up a HTML form where user enters his userid, password, and
   emailid.
2. I pass this information t a perl module and verify his user exists
   in the database.
3. If successfully validating this user I get account information
   from the database, put up a html form, and post that information
   to text boxes in the html form.
 
 The problem i'm having is returning the data to the text areas in the 
 form. I can print the data  coming back from the database so that piece 
 is working. When I set the value in the text box to $username in the 
 text box I get $username instead of what was returned from the database. 
 I can print  the actual returned  username by doing a print of $username 
 variable but outside the text block. Ultimately I would like the user to 
 be able to make changes to their user information then i'll update the 
 database. I'm sure this can be done and that means i'm probably looking 
 past something really obvious. Google has not been much use. Any ideas?
 
 Stumped
 
Are you using CGI.pm?

perldoc CGI

beginners-cgi@perl.org



Displaying fetched values in html form

2006-06-12 Thread Kevin Moore
I'm not sure if this is the right forum so i'd appreciate pointers to 
the correct place if i'm wrong.


I've got DBI running between apache and an Oracle 10gR2 database. I can 
insert data with no problem. Here's what i'm attempting to do.


  1. Put up a HTML form where user enters his userid, password, and
 emailid.
  2. I pass this information t a perl module and verify his user exists
 in the database.
  3. If successfully validating this user I get account information
 from the database, put up a html form, and post that information
 to text boxes in the html form.

The problem i'm having is returning the data to the text areas in the 
form. I can print the data  coming back from the database so that piece 
is working. When I set the value in the text box to $username in the 
text box I get $username instead of what was returned from the database. 
I can print  the actual returned  username by doing a print of $username 
variable but outside the text block. Ultimately I would like the user to 
be able to make changes to their user information then i'll update the 
database. I'm sure this can be done and that means i'm probably looking 
past something really obvious. Google has not been much use. Any ideas?


Stumped


Re: Displaying fetched values in html form

2006-06-12 Thread Ron Savage
On Mon, 12 Jun 2006 14:50:55 -0700, Kevin Moore wrote:

Hi Kevin

It's impossible to debug invisible code (without loading the Telepathy module
:-), so posting it would help.

As for the forum, your description does not suggest a DBI problem, but rather a
general Perl problem. Hence I suggest the newsgroup comp.lang.perl.misc.
--
Cheers
Ron Savage, [EMAIL PROTECTED] on 13/06/2006
http://savage.net.au/index.html
Let the record show: Microsoft is not an Australian company