View previous topic :: View next topic |
Author |
Message |
malatio -
Joined: 09 Feb 2004 Posts: 1
|
Posted: Fri Mar 05, 2004 11:59 am Post subject: wml/php issues --> help needed plz! |
|
|
Hi,
I'm curently trying to develop a wap site in wml/php but I'm getting no where. The following is a simpe wml code that sends username and password to a php page to be validated. However I'm getting a HTTP 405 error method not allowed. According to my nokia development toolkit there's nothing wrong with the code. So I would appreciate any suggestions.
I'm not sure if there's something wrong with my code or the server?
Thank you.
Malti :)
<?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="testDB" title="Testing db">
<do type="accept" label="Send">
<go href="http://localhost/page2.wml" method="post">
<postfield name="username" value="$username"/>
<postfield name="password" value="$password"/>
</go>
</do>
<p align="left">
username plz :<br/>
<input name="username" emptyok="false" format="*m" type="text"/>
password plz:<br/>
<input name="password" emptyok="false" format="*m" type="text"/>
</p>
</card>
</wml> |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Mar 05, 2004 3:11 pm Post subject: Re: wml/php issues --> help needed plz! |
|
|
malatio,
You get error 405 because the page the form is posted to is a static page (and not a script) <go href="http://localhost/page2.wml" method="post">
So either rename page2.wml to page2.php or add wml to the list of extensions associated to PHP (which is the best solution in your case).
By the way, it is highly advised to use short URLs instead of full URLs. So insteadof http://localhost/page2.wml, use /page2.wml . This helps a lot when you deploy your site online (you won't have to change every localhost2 occurence with the final name of your server). _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|