|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
login Card for WAP site
Hi
I want to make a basic login screen for my WAP site. I DONT want to have anything fancy i.e. verifying the password back with a php databases. but want 1 username and 1 password, which is to be checked that it is correct in the WML code itself. I would imagine this would be easy to do. But can't find any code to help. Regards |
|
#2
|
||||
|
||||
|
dead simple in php without a database:
// headers if(($username=="username") and ($password=="password")){ // echo logged in okay deck }else{ // echo log in form deck } // footers hth
__________________
Andy Moore << oh no it's got a blog..... Word Press WAP Plugin with Ad Mob Advertising revenue PHP developer deploying ringtones, mp3 downloads and realtones I'm a geek who's obsessed with stats and gadgets |
|
#3
|
|||
|
|||
|
Cheers AndyMoo
However, I wanted to do it in WML not through PHP or anything external like that. I just for example username = "Optimus" and password = "test" But I cant find out how to put the check part into WML. I mainly code in VB so naturally think along the lines of an IF password= etc etc then goto CARDmain else goto CARDdeniedaccess |
|
#4
|
||||
|
||||
|
well wml is very limited in the sense you can't make it do stuff like you want but the logic behind a login is simple and you've grasped that so making it work in vb shouldn't be too tasking for you
good luck |
|
#5
|
|||
|
|||
|
Come on matey, you must know the code I need...
Here's the basic login card. <?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="from" title="Please Login"> <p> Username: <input name="username" type="text" value=""/> Password: <input name="password" type="password" value=""/> How do I tell it to validate it?? ) |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > login Card for WAP site |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|