Form Posting - Postet den (1051 Views)
Advanced Member
JJenson
Innlegg: 2121
2121
I just had a quick question I have done basic email forms but this one is actually posting to itself then submitting and you have to fill our a second form with data from both the first 2 forms.
This is what I am rewritting for .asp it is in .php right now. Any ideas or help on how to post the data then send it through each page then post it in an email. I am just lost on how to start this and get it to where I need it to go. Also I need it sending to both emails.
You can view their website to see how it works: www.autofundingnetwork.com

On the form on the home page, type in these things so you can see how it works:

First Name: Test
Last Name: Test
Phone: 5555555555
Email: test@test.com
Zip: 84003
Approval Code: 123456

Let me know if anyone knows how to do this?
Thanks
Jeff

<
   
 Sidestørrelse 
Postet den
Senior Member
MaD2ko0l
Innlegg: 1053
1053
somthign like this? Test Page
Code:

<%
If Request.QueryString("FormPage") = "" then

'show the first form
%>
<table align="center" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<form method="POST" action="test.asp?FormPage=1">
<table border="0" cellpadding="5" cellspacing="1" bgcolor="#003399">
<tr>
<td align="center" valign="middle" bgcolor="#E8E8E8" colspan="2">
<font face="MS Sans Serif, Arial" size="3" color="#000000"><strong>Suggest a link</strong></font></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#E8E8E8">
<font face="MS Sans Serif, Arial" size="2" color="#000000">Title of Web Site : </font></td>
<td bgcolor="#E8E8E8"><input type="text" name="wstitle" size="40"></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#E8E8E8">
<font face="MS Sans Serif, Arial" size="2" color="#000000">URL : </font></td>
<td bgcolor="#E8E8E8"><input type="text" name="wsurl" size="40" value="http://"></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#E8E8E8">
<font face="MS Sans Serif, Arial" size="2" color="#000000">Site Description : </font></td>
<td bgcolor="#E8E8E8"><textarea rows="5" name="wsdesc" cols="40"></textarea></td>
</tr>
</table>
<div align="center"><center><p>
<input type="submit" value="Suggest Link" name="Submit">
<input type="reset" value="Reset" name="Reset"></p>
</center></div>
</form>
</td>
</tr>
</table>
<%
Else

'submit form

Response.Write Request.form("wstitle") & "<BR>"
Response.Write Request.form("wsurl") & "<BR>"
Response.Write Request.form("wsdesc") & "<BR>"
Response.Write "Form Submitted"

End If
%>
<
© 1999-2010 MaD2ko0l
Postet den
Advanced Member
JJenson
Innlegg: 2121
2121
Thanks Mad2Kool I think I got it all but this one last problem well actuall 2 problems.
I have this code checking if a value has been passed form my previous form and it should display certain info this is what I have to display.
Code:

<% 
if "AuthorizationYes" = yes then
Response.Write "Yes I am authorizing you to pull my credit"
else if "AuthorizationNo" = no then
Response.Write "No I am not authorizing you to pull my credit"
end if
end if
%>

I know the values are being passed the first one will always equal yes and the second one will always equal no if checked but I need to know how if they checked yes to display the first line of text and if they didn't select anything or no it will show the second line of code?<
Postet den
Advanced Member
JJenson
Innlegg: 2121
2121
Nevermind I got it me just being dumb I am on pain killers right now so at least I have a good excuse. smile<
Postet den
Senior Member
MaD2ko0l
Innlegg: 1053
1053
glad u got it sorted...if you dont mind me asking, why are you on pain killers?<
© 1999-2010 MaD2ko0l
Postet den
Advanced Member
JJenson
Innlegg: 2121
2121
No you can ask. I Hurt my back really bad a year ago and been going to a chiropractor for the last year with very little results so went to the doctor and they are having me take painkillers and muscles relaxors so I can sleep and I have to start going to a physical therapist.

Just my dumb back but those pain killers make it hard to remember and to concentrate smile<
Postet den
Senior Member
MaD2ko0l
Innlegg: 1053
1053
but look on the bright side...its a great excuse for having a blonde moment

hope you get it sorted out soon<
© 1999-2010 MaD2ko0l
Postet den
Advanced Member
JJenson
Innlegg: 2121
2121
lol yeah smile It will be good got the whole site done. Now they gave me 2 more smile so now it shoudl be easy I hope lol<
 
Du må legge inn en melding