Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<b>Transfering info from one form to another form?</b>

Status
Not open for further replies.

jjoint

Programmer
Jan 4, 2003
9
CA
I have these two forms in my ASP pasges. The first one located on say index.asp looks like this:

<form method=post action=&quot;thankyuo.asp&quot;>
<table border=0>
<tr>
<td colspan=2>Fill out your name and emailaddress<br> to receive our newsletter!</td>
</tr>
<tr>
<td><input type=text name=&quot;name&quot; size=20 maxlength=50></td>
<td><input type=text name=&quot;email&quot; size=20 maxlength=50></td>
<td><input type=submit value=Submit name=submit></td>
</tr>
<tr>
<tr>
<td colspan=2><font size=1 face=arial><input type=radio name=action value=subscribe CHECKED> Subscribe<input type=radio name=action value=unsubscribe>Unsubscribe</font></td>
</tr>
</table>
</form>

===========================================================
when a user submits his name and email into the form above, I want this data to be transferred onto this form on another page that would only be seen by me (the administrator of my site):

<p><div align=&quot;center&quot;><p>
(1)<table><FORM name=&quot;t1&quot; action=&quot; method=&quot;post&quot;>
<INPUT type=&quot;hidden&quot; name=&quot;usernum&quot; value=&quot;somenumbers&quot; />
<INPUT type=&quot;hidden&quot; name=&quot;cpv&quot; value=&quot;somenumber&quot; />

<tr bgcolor=&quot;&quot;><td align=&quot;center&quot;><FONT face=&quot;Arial,Helvetica&quot; size=&quot;2&quot;><b>Join the mailing list</b></td></tr>
<tr><td><table border=&quot;1&quot; bgcolor=&quot;&quot;><tr><td colspan=&quot;2&quot;><FONT face=&quot;Arial,Helvetica&quot; size=&quot;2&quot;>Enter your name and email address:</font></td></tr>
<tr><td><FONT face=&quot;Arial,Helvetica&quot; size=&quot;2&quot;>Name: </font></td><td><input type=&quot;text&quot; name=&quot;ename&quot; size=&quot;30&quot; maxlength=&quot;60&quot; /></td></tr>
<tr><td><FONT face=&quot;Arial,Helvetica&quot; size=&quot;2&quot;>Email: </font></td><td><input type=&quot;text&quot; name=&quot;emailaddress&quot; size=&quot;30&quot; maxlength=&quot;100&quot; />&nbsp;<input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;JOIN&quot; /></td></tr><td align=&quot;center&quot;><INPUT type=&quot;radio&quot; name=&quot;action&quot; value=&quot;join&quot; CHECKED />
</td></tr></table></div></p>

this information would be of GREAT help to me. I await your response,
Josh
 
[tt]Since you're sending the first form to the second form, the code the second form's values with
<%=Request.form(&quot;field1&quot;)%>
<%=Request.form(&quot;field2&quot;)%>
<%=Request.form(&quot;field3&quot;)%>
<%=Request.form(&quot;field4&quot;)%>
<%=Request.form(&quot;field5&quot;)%>
etc...


T ® Ñ ¥
To keep a lamp burning we have to keep puting oil in it.
Progress2.gif

 
where do I place this on this form?:

<p><div align=&quot;center&quot;><p>
<table><FORM name=&quot;t1&quot; action=&quot; method=&quot;post&quot;>
<INPUT type=&quot;hidden&quot; name=&quot;usernum&quot; value=&quot;somenumbers&quot; />
<INPUT type=&quot;hidden&quot; name=&quot;cpv&quot; value=&quot;somenumber&quot; />

<tr bgcolor=&quot;&quot;><td align=&quot;center&quot;><FONT face=&quot;Arial,Helvetica&quot; size=&quot;2&quot;><b>Join the mailing list</b></td></tr>
<tr><td><table border=&quot;1&quot; bgcolor=&quot;&quot;><tr><td colspan=&quot;2&quot;><FONT face=&quot;Arial,Helvetica&quot; size=&quot;2&quot;>Enter your name and email address:</font></td></tr>
<tr><td><FONT face=&quot;Arial,Helvetica&quot; size=&quot;2&quot;>Name: </font></td><td><input type=&quot;text&quot; name=&quot;ename&quot; size=&quot;30&quot; maxlength=&quot;60&quot; /></td></tr>
<tr><td><FONT face=&quot;Arial,Helvetica&quot; size=&quot;2&quot;>Email: </font></td><td><input type=&quot;text&quot; name=&quot;emailaddress&quot; size=&quot;30&quot; maxlength=&quot;100&quot; />&nbsp;<input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;JOIN&quot; /></td></tr><td align=&quot;center&quot;><INPUT type=&quot;radio&quot; name=&quot;action&quot; value=&quot;join&quot; CHECKED />
</td></tr></table></div></p>
 
[tt]

<tr bgcolor=&quot;&quot;><td align=&quot;center&quot;><FONT face=&quot;Arial,Helvetica&quot; size=&quot;2&quot;><b>Join the mailing list</b></td></tr>
<tr><td><table border=&quot;1&quot; bgcolor=&quot;&quot;><tr><td colspan=&quot;2&quot;><FONT face=&quot;Arial,Helvetica&quot; size=&quot;2&quot;>Enter your name and email address:</font></td></tr>
<tr><td><FONT face=&quot;Arial,Helvetica&quot; size=&quot;2&quot;>Name: </font></td><td><input type=&quot;text&quot; name=<%=request.form(&quot;name&quot;)%> size=&quot;30&quot; maxlength=&quot;60&quot; /></td></tr>
<tr><td><FONT face=&quot;Arial,Helvetica&quot; size=&quot;2&quot;>Email: </font></td><td><input type=&quot;text&quot; name=<%=Request.form(&quot;email&quot;)%> size=&quot;30&quot; maxlength=&quot;100&quot; /> <input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;JOIN&quot; /></td></tr><td align=&quot;center&quot;><INPUT type=&quot;radio&quot; name=&quot;action&quot; value=&quot;join&quot; CHECKED />
</td></tr></table></div></p>
T ® Ñ ¥
To keep a lamp burning we have to keep puting oil in it.
Progress2.gif

 
[tt]Sorry, I just came back and noticed I told you wrong...



value=&quot;<%=Request.form(&quot;name&quot;)%>&quot;
value=&quot;<%=Request.form(&quot;email&quot;)%>&quot;

Should be the value of your fields, not the name

it should look like this:

<input type=&quot;text&quot; name=&quot;name&quot; value=<%=request.form(&quot;name&quot;)%> size=&quot;30&quot; maxlength=&quot;60&quot; />

<input type=&quot;text&quot; name=&quot;name&quot; value=<%=request.form(&quot;email&quot;)%> size=&quot;30&quot; maxlength=&quot;60&quot; />


T ® Ñ ¥
To keep a lamp burning we have to keep puting oil in it.
Progress2.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top