Thank you to all for your advise!

I explain the solution I've used, just in case it can help anyone:

I've done that:

in the original "first" page: 

<Form name="form" method="POST" action="newasppage.asp">    
<input name="name" type="text" size="30">
all the other fields.....
<input type="submit" name="send" value="submit!"> 
<input name="cancel" type="reset" value="cancel"> 
</form>

in the new asp page newasppage.asp:

I start the page with:
<% Response.Buffer %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<head>....

and I do:
<body>
<% Session("nameValue")= Request.Form("name") %>
<Form name="formulari" method="POST" action="http://xxx/FormMail.pl";>
<input type="hidden" name="recipient" value="email protected">
<input type="hidden" name="redirect" value="xxx/confirm.asp">
<% Response.Write("<input type='hidden' name='name' 
value='"&Request.Form("name")&"'>") %>
<% the same with all the other fields... %>
</form>
<script language="JavaScript" type="text/JavaScript">
<!--
document.formulari.submit();
//-->
</script>

then in the last page "confirm.asp",
I say 
Thank you <% =Session("nameValue") %>,

Maybe is not the best solution (is goes slowly...), but it works.
Thank you againt to all!
Bye!
Clara






> 
> Hi!
>  
> could anyone help?
> I have a question related with the use of Session to store the 
value 
> of a form element.
> I need that in order to pass this value to a "redirected" asp 
page, 
> in a form which has action="xxxx.pl".
>  
> if I use the command:
> onSubmit='<% Session("namevalue")= this.name.value %>' 
>  
> I get the error: Microsoft VBScript error '800a01a8' Object 
> required: '' 
> 
> I post the whole code:
> <Form name="form" method="POST" action="xxxxxx/FormMail.pl" 
> onSubmit='<% Session("namevalue")= this.name.value %>'>    
> <input type = "hidden" name="recipient" value="[EMAIL PROTECTED]">
> <input type = "hidden" name="redirect" 
> value="http://xxx.xxx.xxx/confirm.asp";>
> <input id="name" type="text" size="30"><input type="submit" 
> name="send" value="submit!"> 
> <input name="cancel" type="reset" value="cancel" > 
> </form>
> 
> I've tried with 
> onSubmit='<% Session("namevalue")=Request.form("name") %>' but it 
> doesn't work, either I use runat="server" or not.
>  
> Thank you very much for all!
> Clara








------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to