Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form ignoring the spaces and carriage return

Status
Not open for further replies.

alphaaa

Technical User
Jan 15, 2002
45
US
My script is ignoring spaces, carriage return and outputting text into a single line.
Any HELP!

<FORM NAME=&quot;upload&quot; METHOD=POST ACTION=&quot;/cgi-bin/message/frame/post_message.cgi&quot;
ENCTYPE=&quot;multipart/form-data&quot;><TD>
<font size=&quot;-2&quot;>NAME</font>
<INPUT TYPE=&quot;TEXT&quot; NAME=&quot;name&quot; ></TD>
<font size=&quot;-2&quot;>EMAIL</font>
<INPUT TYPE=&quot;TEXT&quot; NAME=&quot;email&quot; SIZE=&quot;40&quot;> </TR><TD>
      
<textarea rows=&quot;10&quot; name=&quot;message&quot; cols=&quot;50&quot;>

<p>&nbsp;</p>
<input type=&quot;submit&quot; value=&quot;Submit&quot; name=&quot;B1&quot;><input type=&quot;reset&quot; value=&quot;Reset&quot; name=&quot;B2&quot;></p>
</TD><p>&nbsp;</p>
 
what's the perl post_message.cgi look like where it outputs the text? Bets are the problem lies there, not in the html. ----------------------------------------------------------------------------------
...but I'm just a C man trying to see the light
 
Here is the coding for my post_message.cgi file.

# print qq(&quot;FOLLOWING MESSAGE HAS BEEN POSTED\n&quot;);
$insert=$dhb->prepare(&quot;INSERT INTO MESSAGE_(MESSAGE,NAME,E_MAIL,SUBJECT)values(?,?,?,?)&quot;);
$insert->execute($message,$name,$email,$subject);
#print qq(&quot;ADD SUCCESSFUL\n&quot;);
Print_posted_message();
print end_html;
sub Print_posted_message{
print<<HTML;
<html> ......
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top