View Full Version : Host Server posting problems
forumuser10
07-15-2010, 05:47 PM
Dear All,
I've just recently begun to build my website. On a page, there is a text area with a Submit button below it. The user enters text in the box and then clicks submit. Text box is submited to the server which it then posts to the same page. The problem is that, when the entry is multiple lines long it gets posted to the page as one single long sentence running off the right side of the page. I am using Microsoft Expression Web 4. I have tried using a line break and justify margin settings, but to no avail. The text still gets posted as a single long line of text instead of marginalizing it into multiple lines.
Thanks in advance for help,
Elwood
shadmego
07-15-2010, 11:12 PM
Can you post some of the code from the page that is having the problem? It would be easier for me to help if I could review what you have written so far.
forumuser10
07-16-2010, 01:42 PM
Dear Shadmego,
Here is all the code from the page. Sorry it took so long to reply. My webpage crashed this morning and the server was having problems. I have fixed that but the problem where it posts all the text into a single line still exists. Just so you know i am using front page server extensions.
<!DOCTYPE html><html><head><meta content="en-us" http-equiv="Content-Language"><meta content="text/html; charset=utf-8" http-equiv="Content-Type"><title>Untitled 1</title><style type="text/css">
.auto-style1 {
font-size: large;
color: #008000;
font-weight: bold;
}
</style></head><body style="height: 339px"><p class="auto-style1">Please submit
Comments Below:</p>
<p class="auto-style1"> </p>
<form action="--WEBBOT-SELF--" method="post" style="height: 128px; width: 649px" onSubmit="location.href='_derived/nortbots.htm';return false;" webbot-onSubmit="">
<!--webbot B-Reverse-Chronology="TRUE" bot="SaveResults" S-Builtin-Fields="Date" S-Date-Format="%m/%d/%Y" S-Form-Fields="TextArea1 " S-Format="HTML/PRE" S-Label-Fields="FALSE" U-File="page.html" startspan --><input NAME="VTI-GROUP" TYPE="hidden" VALUE="0"><!--webbot bot="SaveResults" endspan i-checksum="37496" -->
<textarea name="TextArea1" style="height: 84px; width: 645px"></textarea><input name="Submit2" style="width: 92px; height: 33px" type="submit" value="submit"><input name="submit1" type="hidden" value="submit"></form>
<p> </p>
<p>Read Comments below:</p>
<hr> <pre>
</pre></body>
</html>
shadmego
07-17-2010, 12:06 AM
I'm afraid I won't be able to help much as I don't use FrontPage nor do I really understand what is going on here.
If I am understanding this correctly, your form is using nortbots.htm to process the form data and then saving that data to a file called "page.html". Is "page.html" the page whose code you posted above? I would also assume the form data is being echoed back on this page between the <pre></pre> tags.
If it were me working on this form, I would try to use a different HTML tag than <pre> for my form data. Something like <span></span> might be better for formatting. I have seen cases where <pre> tags screw up line breaks and I don't think text flows properly between the tags borders. Again, I don't use <pre> alot in my code so it's been awhile and my memory tends to get leaky after a few months of non-use ... hehe...
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.