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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

4620 IP Creating dynamic web pages

Status
Not open for further replies.

GuzaPasha

Technical User
May 15, 2003
311
FR
I will show u 2 pairs of two pages that i made and results are totally different.

the first example
index.wml
<code>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
"
<wml>
<card id="index" title="TestASP">
<do type="accept" label="TestASP">
<go href="terms.asp" method="POST" >
<postfield name="term" value="$term"/>
</go>
</do>
<p>
Type your text:
<input type="text" name="term" value=""/>
</p>
</card>
</wml>
</code>

terms.asp
<code>
<% @ language="vbscript" %>
<% Option Explicit %>
<% Response.ContentType = "text/vnd.wap.wml" %>
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"<wml>
<card id="term" title="Terms">
<do type="prev" label="Back">
<prev/>
</do>
<p>
<%
Response.Write "OK"
%>
</p>
</card>
</wml>
</code>

The result is text "OK" which is regular using the index.wml and terms.asp

But when I put the following line wich will read from the variable 'term'

Response.Write Request.From("term") instead of Response.Write "OK"

the result is:

Page cannot be rendered.


Any idea?

Has anyone of u created any dynamic pages?

Running this all into the Opera WebBroswer is ok.

I am confused cos the result is the wml page and it looks ok.

GuzaPasha
 
there is the mistake into the document.

Correction is:

Response.Write Request.Form("term")

GuzaPasha
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top