diana
07-22-2003, 11:17 AM
HY
I have a formulaire in HTML with textboxes,textarea.,...
and when somebody don't write nothing , a messagebox appear and redirect the user to the formulaire,,,
but all the text complete will be initialize again ...
How can I do to keep the textes in textboxes.....?
exemple....
Client=Trim(request.querystring("nom"))
If Client ="" Then
response.redirect"formulaire.htm"
End If
but all the text complete will be initialize again ...
How can I it to keep in the texboxes,what I write before?
Can somebody help me!!
THKS
DIANA
you answer me with cookies in asp////
That's the one alright. Request.Cookies("cookieName").
Oops, I forgot this was in the ASP section. Anyway, to set the cookies, you can use:
Response.Cookies(name)[(key)|.attribute]=value
(go here for some examples).
To retrieve the cookies, diana is going to need to use Javascript since the form page is HTML.
Ok where I must set the cookies in html or asp?
in html i have a form
<form action="inscrire.asp" method="get" name="form1">
<table width="550" border="0" align="center">
<tr >
<td ><h4>Client</td></h4>
<td ><textarea name="nom" cols=15 rows=2 ></textarea>
</tr>
.......
on file asp I have
Client=request.Cookies("nom")
I don't know where I put the cookies?
And the value is the name from texarea?
the cookie name i can put what I want?
THKS
diana
__________________
I have a formulaire in HTML with textboxes,textarea.,...
and when somebody don't write nothing , a messagebox appear and redirect the user to the formulaire,,,
but all the text complete will be initialize again ...
How can I do to keep the textes in textboxes.....?
exemple....
Client=Trim(request.querystring("nom"))
If Client ="" Then
response.redirect"formulaire.htm"
End If
but all the text complete will be initialize again ...
How can I it to keep in the texboxes,what I write before?
Can somebody help me!!
THKS
DIANA
you answer me with cookies in asp////
That's the one alright. Request.Cookies("cookieName").
Oops, I forgot this was in the ASP section. Anyway, to set the cookies, you can use:
Response.Cookies(name)[(key)|.attribute]=value
(go here for some examples).
To retrieve the cookies, diana is going to need to use Javascript since the form page is HTML.
Ok where I must set the cookies in html or asp?
in html i have a form
<form action="inscrire.asp" method="get" name="form1">
<table width="550" border="0" align="center">
<tr >
<td ><h4>Client</td></h4>
<td ><textarea name="nom" cols=15 rows=2 ></textarea>
</tr>
.......
on file asp I have
Client=request.Cookies("nom")
I don't know where I put the cookies?
And the value is the name from texarea?
the cookie name i can put what I want?
THKS
diana
__________________