Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old November 18th, 2000, 04:49 AM
santana santana is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 0 santana User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi friends, I have a problem with a WAP Perl CGI and I have spent a LOT of time without any conclusion.... can anybody helpme ??

this is the CGI:


#!/usr/bin/perl -w

use CGI qw(:standard);
$query = new CGI;
$message=$query->param('message');
&init;
&header;

#$user = param('user');
#$password = param('password');
#$host = param('host');
$fr = param('fr');
$t = param('t');
$sub = param('sub');
$cgi = param('cgi');
#$message = param('message');
print "<card id="card1" title="Correo $user" newcontext="true">";
print "n";
print "<p align="left">n";

print "Mensage:<br/>";
print "<input name="message" type="text" size="20" value=""/>";
print "<br/>";

$men = $message;

$ENVI =
"http://echelon.eupvg.upc.es/~santana/emailfor2.cgi?message=${men}&to=${fr}&subject=${sub}&from=${t}";

print "<anchor title="Enviar">Enviar Respuesta<go
href="$ENVI"></go>";
print "</anchor><br/>n";
print "<br/>";

$POP39MC6 =
"http://echelon.eupvg.upc.es/~santana/POP39MC6.cgi?host=${host}&user=${user}&password=${password}&cgi=${cgi}";
print "<anchor title="Volver">Volver $i<go href="$POP39MC6"></go>";
print "</anchor><br/>n";


&footer;
exit;

#*******************************************************#
# SUB ROUTINES #
#*******************************************************#
sub init{
print "Content-type: text/vnd.wap.wmlnn";
}

sub header{
print '<?xml version="1.0"?>';
print "n";
print '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">';
print "n";
print "<wml>n";
}

sub footer{
print "</p>n</card>n</wml>n";
}


BUT it doesn´t work!!

When I enter a text in the message input field, all seems perfect, BUT when I do
$ENVI =
"http://echelon.eupvg.upc.es/~santana/emailfor2.cgi?message=${men}&to=${fr}&subject=${sub}&from=${t}";

the message variable is sent ALLWAYS whit nothing inside. This variable must carry the text that I input, but it send nothing !!!

Can anybody help me pleeeeease !!!!!

I will really apreciatre this help because I have spent more than 2 days thinking about..


Javi



Reply With Quote
  #2  
Old November 18th, 2000, 09:36 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>http://echelon.eupvg.upc.es/~santana/emailfor2.cgi?message=${men}&to=${fr}&subject=${sub}&from=${t}

Just remove all those {}.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > problem with input field !!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway