Srinivasa Rao
New Member
I have the following speed script code,
<html>
<head>
<TITLE>Search Customer</TITLE>
</head>
<body BGCOLOR="pink">
<FORM action="search.htm" method="post">
Enter Customer Number:<INPUT TYPE="text" NAME="custnum" />
<INPUT TYPE="submit" NAME="search" VALUE="search" />
</FORM>
<?ws>
DEFINE VARIABLE GET_val_txt AS CHARACTER NO-UNDO.
DEFINE VARIABLE GET_val_btn AS CHARACTER NO-UNDO.
DEFINE VARIABLE counter AS INTEGER NO-UNDO init 0.
GET_val_txt = get-value("custnum").
counter = int(get-cookie("cooki")).
{&out}
"<script language='javascript'>alert(" + string(counter) + ");</script>".
FIND FIRST customer WHERE cust-num = int(GET_val_txt) NO-ERROR.
IF AVAILABLE customer THEN
DO:
{&out}
"<form action='update.p' method='post'>"
"Customer Number : <input type='text' name='cust-num' value='" Cust-Num "' readonly /> <br />"
"Customer Name : <input type='text' name='custname' value='" NAME "' /> <br />"
"Phone Number : <input type='text' name='cust-phn' value='" phone "' /> <br />"
" <input type='submit' name='save' value='save' /> "
"</form>".
counter = counter + 1.
END.
ELSE IF not available customer and counter > 0 then
{&out} "<h2>No Record Found</h2>".
set-cookie("cooki",string(counter),?,?,?,?,?).
</?ws>
</body>
</html>
but in browser it appearing like
Set-Cookie: cooki=0; path=/scripts/cgiip.exe/WService=wsbroker1
i don't want to get above shown line.
what can i do for resolving it?
<html>
<head>
<TITLE>Search Customer</TITLE>
</head>
<body BGCOLOR="pink">
<FORM action="search.htm" method="post">
Enter Customer Number:<INPUT TYPE="text" NAME="custnum" />
<INPUT TYPE="submit" NAME="search" VALUE="search" />
</FORM>
<?ws>
DEFINE VARIABLE GET_val_txt AS CHARACTER NO-UNDO.
DEFINE VARIABLE GET_val_btn AS CHARACTER NO-UNDO.
DEFINE VARIABLE counter AS INTEGER NO-UNDO init 0.
GET_val_txt = get-value("custnum").
counter = int(get-cookie("cooki")).
{&out}
"<script language='javascript'>alert(" + string(counter) + ");</script>".
FIND FIRST customer WHERE cust-num = int(GET_val_txt) NO-ERROR.
IF AVAILABLE customer THEN
DO:
{&out}
"<form action='update.p' method='post'>"
"Customer Number : <input type='text' name='cust-num' value='" Cust-Num "' readonly /> <br />"
"Customer Name : <input type='text' name='custname' value='" NAME "' /> <br />"
"Phone Number : <input type='text' name='cust-phn' value='" phone "' /> <br />"
" <input type='submit' name='save' value='save' /> "
"</form>".
counter = counter + 1.
END.
ELSE IF not available customer and counter > 0 then
{&out} "<h2>No Record Found</h2>".
set-cookie("cooki",string(counter),?,?,?,?,?).
</?ws>
</body>
</html>
but in browser it appearing like
Set-Cookie: cooki=0; path=/scripts/cgiip.exe/WService=wsbroker1
i don't want to get above shown line.
what can i do for resolving it?