hey there,
i'm having a number of problems with inserting and retrieving extended
characters in Oracle (such as é) from a form.
The problem's present both with sending the characters, and with retrieving
them for display in HTML.
Has anyone else used HTML forms to send french characters to Oracle
First of all I would strongly recommend using DBI for this. It will allow
you to use flat files now then upgrade to a database later with almost no
code changes.
That being said, there are a few ways you can do this, the simplest being
this:
# untested
my $valid_user = grep "$FORM{username}|$FO
Ben --
...and then Ben Huyghebaert said...
%
% Thanks but I don't think that will work because as someone pointed out my foreach
loop leaves me with only the last elements of @access.
Well, it did that as you wrote it; you looped through the whole file and
*then* started any comparing.
I wa
on Wed, 12 Jun 2002 12:51:29 GMT, [EMAIL PROTECTED] (Ben
Huyghebaert) wrote:
>Here is the code I'm using right now. I open up the file with
>the usernames and passwords and throw it all into @access and
>then do this
If you put your username/password pairs in a hash instead of an
Thanks but I don't think that will work because as someone pointed out my foreach loop
leaves me with only the last elements of @access.
I need it to give me all the elements in two @s I'll see if I can figure it out maybe
someone know the best way?
On Wed, 12 June 2002, David vd Geer Inhuur
Thank you for the tips. I appreciate it. Sorry about the misunderstanding.
--Al
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I think this will work :
foreach $i(@access) {
chomp $i;
($un,$pw) = split(/\|/, $i);
$username = $FORM{'username'};
$password = $FORM{'password'};
if (($username ne $un) || ($password ne $pw)) {
print
> foreach $i (@access) {
> chomp($i);
> ($un,$pw) =
> split(/\|/,$i);
> }
at the end of this loop, $un and $pw contain the last element of
@access.
__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.co
I'm starting to make a perl/cgi/html based multi-player game called 3MF (Massive
Multiplayer Medieval Frolic). So far I've made an account creation screen that writes
the data to two flat file db's one of them holds the usernames & passwords, while the
other holds all the user information.
Ok, what is it that you want? It's hard to read when the code is split up over
the page.
Maybe it already answered your questions ??
#!/usr/local/bin/perl
#
$username = param('username');
open(USER, "< user.dat");
while () {
chomp;
($name, $site, $site_id, $des, $email, $pass) = split(/\
---CODE---
open(USER, "user.dat");
@user = ;
close(USER);
-END CODE-
Ok thats my textfile and this is how I usually read
through the lines
---CODE---
foreach $line (@user) {
chomp($line);
($name, $site, $site_id, $des, $email,
$pass) = split(/\|/,$line);
}
-EN
Ahammell wrote at Wed, 12 Jun 2002 05:32:19 +0200:
> Janek Schleicher wrote:
>> It's a real crime to copy source code.
I missed to say :-). Sorry.
>> Here you see why.
>>
>> Cheerio,
>> Janek
>>
>>
> Janek,
> Im sorry but I dont quite understand your statem
12 matches
Mail list logo