I replaced the action of the form to show_cgi.fwx and this is the result:
QueryString Fields |
code |
340 |
title |
computersgasdgasdgasdgasdgasdgasdbbzv!?h>g:i0,{>-1<>b,(B1=1hqE |
Cookies |
visitor |
_0UR0P81UB |
Server Variables |
APPL_MD_PATH |
/LM/W3SVC/1/ROOT |
APPL_PHYSICAL_PATH |
[hidden] |
CONTENT_LENGTH |
0 |
GATEWAY_INTERFACE |
CGI/1.1 |
HTTPS |
off |
INSTANCE_ID |
1 |
INSTANCE_META_PATH |
/LM/W3SVC/1 |
PATH_INFO |
/show_cgi.fwx |
PATH_TRANSLATED |
[hidden] |
QUERY_STRING |
code=340&title=computersgasdgasdgasdgasdgasdgasdbbzv!?h>g:i0,{>-1<>b,(B1=1hqE |
REMOTE_ADDR |
192.168.0.131 |
REMOTE_HOST |
192.168.0.131 |
REQUEST_METHOD |
GET |
SCRIPT_NAME |
/show_cgi.fwx |
SERVER_NAME |
mike |
SERVER_PORT |
80 |
SERVER_PORT_SECURE |
0 |
SERVER_PROTOCOL |
HTTP/1.1 |
SERVER_SOFTWARE |
Microsoft-IIS/5.0 |
URL |
/show_cgi.fwx |
HTTP_ACCEPT |
image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, */* |
HTTP_ACCEPT_LANGUAGE |
en-us |
HTTP_CONNECTION |
Keep-Alive |
HTTP_HOST |
mike |
HTTP_USER_AGENT |
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt; .NET CLR 1.0.3705) |
HTTP_COOKIE |
visitor=_0UR0P81UB; FW_SessionID=0V00XX4C51 |
HTTP_ACCEPT_ENCODING |
gzip, deflate |
Notice at the end of the string "title" it has a garbled letters on it's end.
Could I send you the whole program? I don't have a URL to show, so might as well email you the program (including sample database) in a Zip file. Can I do that? What email address should I send it to?
-Mike
Sent by FoxWeb Support on 01/14/2003 11:16:30 PM:
The code works fine when I try it. Try changing the action of the form to "show_cgi.fwx", which will return exactly what is sent from the browser. If you are still having the problem, it would be helpful if you could send us a URL that we could use to test this script on your server (while pointing to show_cgi.fwx). If you don't want to post the URL here, you can send it to us via email.
FoxWeb Support Team support@foxweb.com email |
Sent by Michael Pena on 01/14/2003 07:36:14 PM:
Form1.fwx
<form method=
"GET" action="http://mike/form2.fwx" onsubmit="return verify(this)" name="Form1">
<p> </p>
<p><b>Code </b> <input type="text" name="Code" size="25" maxlength="60" value ="<%Response.Write(allt(mCode))%>"
></p>
<p><b>Title <input type="text" name="Title" size="60" maxlength="200" value ="<%Response.Write(allt(mTitle))%>"
></b></p>
<p><b>Class <select size="1" name="Combo" style="font-weight: bold">
<option value="A" <% if mClass="A"
Response.write(' selected ')
endi%> >Asset</option>
<option value="E" <% if mClass="E"
Response.write(' selected ')
endi%> >Expense</option>
<option value="L" <% if mClass="L"
Response.write(' selected ')
endi%> >Liabilities</option>
<option value="I" <% if mClass="I"
Response.write(' selected ')
endi%> >Income </option>
<option value="C" <% if mClass="C"
Response.write(' selected ')
endi%> >Capital</option>
</select></b></p>
<p><b>Validations:</b></p>
<p><b> AR </b><input type="checkbox" name="Check1" value="ON">
<b>Income<input type="checkbox" name="Check3" value="ON"> Bank <input type="checkbox" name="Check5" value="ON"></b></p>
<p><b> AP</b> <input type="checkbox" name="Check2" value="ON">
<b>Expense<input type="checkbox" name="Check4" value="ON"> Sub-Account <input type="checkbox" name="Check6" value="ON"></b></p>
<p> </p>
<p><input type="submit" value="Save" name="B1"></p>
</form>
Form2.fwx
<%
mCode= Request.QueryString("Code")
mTitle = Request.QueryString("Title")
mCombo = Request.QueryString("Combo")
* mCheck1 = Request.QueryString("Check1")
clos data
use CHART in 0
sele CHART
set orde to CHART1
seek padr(uppe(allt(mCODE)),30,' ')
if !foun()
appe blan
endi
repl CODE with allt(uppe(mCODE))
repl title with allt(uppe(mTITLE))
repl class with allt(uppe(mCOMBO))
%>
Database Chart.dbf
code character 30
Title character 100
Class character 1
Sent by FoxWeb Support on 01/14/2003 04:01:05 PM:
The GET method does not work very well with large amounts of data, but by this I mean thousands of bytes -- not hundreds. Most probably the cause of the problem in this case is not the size of your data.
Make sure that you include quotes around all HTML values and that you use the Server.HTMLEncode and Server.URLEncode methods, where appropriate.
In order to provide additional help we would need to view your code. Please post both your pages in this Forum.
FoxWeb Support Team support@foxweb.com email |
Sent by Michael Pena on 01/13/2003 08:08:15 PM:
I tried using "GET" method form on my first page and created two textboxes on it, and my second page I used the Response.querystring method to get the data, It works fine when I typed about 40 to 50 characters on the input box on the first page, but when I type more than that, the data becomes garbled at the end of the string. Worse, The other textbox data is also affected, rendering it blank. What's seems to be the problem? I read that "GET" method is not very good in getting all the data than "POST" method. Is that true? am I doing the wrong thing or what? Need your urgent reply thanks :-)
-Mike-