Helpful Information
 
 
Category: Perl Programming
Cgi Wap question

Hello people!.

I have a very important problem for me . . . . I have a CGI that receive POP3 mails in WAP (this part receive only the header):

. . . . . . .
print "<card id="card1" title="Correo $user" newcontext="true">";
print "n";
print "<p align="left">n";
$arroba = '(arroba)';

for( $i = 1; $i <= $pop->Count(); $i++ ) {
foreach ( $pop->Head($i) ) {
if (/^(From|Subject):s+/i ) {
s/<(.*?)>/$1/gm;
s/@/$arroba/gm;
print $_, "n";
}
}
print "n";
}
. . . . . . . .

But I want that this CGI also display a input variable in orden you can chose the mail you will download. This download is provided by another CGI allready working, BUT this CGI needs the user to select what mail you want to dowload.

This is what I need:

--------------------------
1.- From: Marc
Subject: Hi

2.- From: Javi
Subject: Bye


Choose a mail
[ ]
----------------------------

I tried to do that with (remember, this is wml):

print "Choose a mail<br/>";
print "<input name="number" type="text" size="20" value=""/>";

BUT I donīt know why this doesnīt work in the Perl CGI........

Anybody know what I must do ???

I will really appreciate any help !!

Thanks to everyone.

Javi



[This message has been edited by santana (edited November 09, 2000).]

this question is no longer interesting for me, I have another, please read the new one.

http://www.devshed.com/Talk/Forums/smile.gif










privacy (GDPR)