C
cooldaddy
On my site I wanna generate a form based on a databse. Now when I try
to populate this form something strange happens. The string $namE
contains several words, seperated by spaces. However when I populate
the form, the script only prints out the first word. How come, and how
to solve this ?
#!/usr/bin/perl
use CGI;
my $q = new CGI;
$namE="test this form";
print $namE;
print qq{
<html>
<head>
<title>Untitled</title>
</head>
<form method="post" action="../cgi-bin/savetext.pl">
Name<br>
<input type=text name="name" value=$namE ><br>
Email<br>
<input type=text name="email" value=$emaiL ><br>
Text<br>
<textarea cols="60" rows="24" name="text" style="background-color:
#ffffff; color: #000000; font-size: 11pt;">
$texT
</textarea><br>
<input type=hidden name="part" value=$ARGV[0]$part>
<input type=submit value="send">
</form>
</html>
};
to populate this form something strange happens. The string $namE
contains several words, seperated by spaces. However when I populate
the form, the script only prints out the first word. How come, and how
to solve this ?
#!/usr/bin/perl
use CGI;
my $q = new CGI;
$namE="test this form";
print $namE;
print qq{
<html>
<head>
<title>Untitled</title>
</head>
<form method="post" action="../cgi-bin/savetext.pl">
Name<br>
<input type=text name="name" value=$namE ><br>
Email<br>
<input type=text name="email" value=$emaiL ><br>
Text<br>
<textarea cols="60" rows="24" name="text" style="background-color:
#ffffff; color: #000000; font-size: 11pt;">
$texT
</textarea><br>
<input type=hidden name="part" value=$ARGV[0]$part>
<input type=submit value="send">
</form>
</html>
};