Hello...
I am working on a form that will be filled out in one page and when you click on submit it will take what you entered and put it in with other text and display on another page. To see what I mean go here:
http://ee.1asphost.com/needhelp101/
Fill in the fields and hit submit. When it takes you to the new page it is blank. It is supposed to take what you entered and mix it with other text and display code to make an HTML page. The one file has this in it:
***
Index.asp
***
<html>
<body>
<form method="post" action="generate_it.asp">
Title of Site: <input type="text" name="title" size="20"><BR><BR>
Web Address to Main Picture: <input type="text" name="picture" size="20"><BR><BR>
Content: <input type="text" name="content" size="20"><BR><BR>
Another Picture: <input type="text" name="pic1" size="20"><BR><BR>
Another Picture: <input type="text" name="pic2" size="20"><BR><BR>
Another Picture: <input type="text" name="pic3" size="20"><BR><BR>
Link: <input type="text" name="link1" size="20"><BR><BR>
Name of Link: <input type="text" name="name1" size="20"><BR><BR>
Link: <input type="text" name="link2" size="20"><BR><BR>
Name of Link: <input type="text" name="name2" size="20"><BR><BR>
Link: <input type="text" name="link3" size="20"><BR><BR>
Name of Link: <input type="text" name="name3" size="20"><BR><BR>
Link: <input type="text" name="link4" size="20"><BR><BR>
Name of Link: <input type="text" name="name4" size="20"><BR><BR>
Link: <input type="text" name="link5" size="20"><BR><BR>
Name of Link: <input type="text" name="name5" size="20"><BR><BR>
<input type="submit" value="Submit">
</form>
</body>
</html>
And the other has this in it:
***
Generate_It.asp
***
<%
If title<>"" Then
Response.Write("<html><head><title>" & Request.Form("title") & "</title></head><br />")
Response.Write("<body><h1> " & title & "</h1>")
End If
If picture<>"" Then
Response.Write("" & picture & "")
End If
If content<>"" Then
Response.Write("<BR><BR><table width=85% align=center>" & content & "</table><BR><BR>")
End If
If pic1<>"" Then
Response.Write("" & pic1 & " ")
End If
If pic2<>"" Then
Response.Write("" & pic2 & " ")
End If
If pic3<>"" Then
Response.Write("" & pic3 & "")
End If
If link1<>"" Then
Response.Write("<a href="" & link1 & "">")
End If
If name1<>"" Then
Response.Write("" & name1 & "</a> | ")
End If
If link2<>"" Then
Response.Write("<a href="" & link2 & "">")
End If
If name2<>"" Then
Response.Write("" & name2 & "</a> | ")
End If
If link3<>"" Then
Response.Write("<a href="" & link3 & "">")
End If
If name3<>"" Then
Response.Write("" & name3 & "</a> | ")
End If
If link4<>"" Then
Response.Write("<a href="" & link4 & "">")
End If
If name4<>"" Then
Response.Write("" & name4 & "</a> | ")
End If
If link5<>"" Then
Response.Write("<a href="" & link5 & "">")
End If
If name5<>"" Then
Response.Write("" & name5 & "</a><BR><BR></body></html>")
End If
%>
What do I do to fix this so it works?