Box0
asked on
Simple WML code
The problem with this WML code is that the script that
the form sends info don`t get the info right.
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="sendmail" title="Send mail">
<p><small>
Send message to:</small><br/>
<input name="to" title="Recipient"/>
<small>Your e-mail address:</small><br/>
<input name="from" title="Your email"/>
<small>Subject (optional):</small><br/>
<input name="subject" title="Subject"/>
<small>Message text:</small><br/>
<input name="message" title="Message"/>
<small>
<anchor title="sendmail">Send
<go method="post" href="/cgi-bin/sendwapmail .pl">
<postfield name="to" value="$(to)"/>
<postfield name="from" value="$(from)"/>
<postfield name="subject" value="$(subject)"/>
<postfield name="message" value="$(message)"/>
</go>
</anchor>
</small></p>
<do type="prev" label="Back">
<prev/></do>
</card>
</wml>
the form sends info don`t get the info right.
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="sendmail" title="Send mail">
<p><small>
Send message to:</small><br/>
<input name="to" title="Recipient"/>
<small>Your e-mail address:</small><br/>
<input name="from" title="Your email"/>
<small>Subject (optional):</small><br/>
<input name="subject" title="Subject"/>
<small>Message text:</small><br/>
<input name="message" title="Message"/>
<small>
<anchor title="sendmail">Send
<go method="post" href="/cgi-bin/sendwapmail
<postfield name="to" value="$(to)"/>
<postfield name="from" value="$(from)"/>
<postfield name="subject" value="$(subject)"/>
<postfield name="message" value="$(message)"/>
</go>
</anchor>
</small></p>
<do type="prev" label="Back">
<prev/></do>
</card>
</wml>
I see no error in the file. In what way is the "info" incorrect?
The problem will probably be in the cgi-bin/sendwapmail.pl file, I guess. Maybe you should post that ?!
Yes, but like I said what exactly is the problem?
ASKER
This is the value of the variables :
$to = 513 513to)
$message = 513 513message)
don`t know why this happen.
$to = 513 513to)
$message = 513 513message)
don`t know why this happen.
ASKER
This is the value of the variables :
$to = 513 513to)
$message = 513 513message)
don`t know why this happen.
$to = 513 513to)
$message = 513 513message)
don`t know why this happen.
This is very strage. Perhaps we should try to force the device to use a particular encoding :-
<postfield name="subject" value="$(subject:noesc)"/>
Send the contents without escaping (might also try escape instead of noesc).
<postfield name="subject" value="$(subject:noesc)"/>
Send the contents without escaping (might also try escape instead of noesc).
ASKER
Tried that. Now the error is this:
$to = 0to:noesc)
$message = 0message:noesc)
$to = 0to:noesc)
$message = 0message:noesc)
ASKER
For some reason $ENV{'QUERY_STRING'} is always empty.
Why does this happen? Server problem? Do I need to
install something on my server?
Why does this happen? Server problem? Do I need to
install something on my server?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.