Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML HTML Basics

PHP WML POSTGRESQL

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

PHP WML POSTGRESQL

Postby asvur » Mon Jul 21, 2003 9:41 pm

Hi.

I am trying to send two variables from login.wml to auth.php.
But auth.php gets empty variables.

here is the code for login.wml:


<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card newcontext="true" title="Fuhrpark Login" id="login">
<p>
<fieldset title="name & PIN">
Name:
<input name="name"
type="text"/><br/>
Password:
<input name="pin"
type="password"/>
</fieldset>
<anchor>
Login
<go method="post" href="auth.php" >
<postfield name="name" value="$nameeingeben"/>
<postfield name="pin" value="$pineingeben"/>
</go>
</anchor>
<do type="accept"
label="Login">
<go method="post" href="auth.php" >
<postfield name="name" value="$nameeingeben"/>
<postfield name="pin" value="$pineingeben"/>
</go>
</do>
</p>
</card>
</wml>

and here is the code for auth.php:

<?php
echo ("Name $name");
echo ("Pin $pin");
?>

What do i wrong?
Please can you help me?
asvur
New php-forum User
New php-forum User
 
Posts: 7
Joined: Mon Jul 21, 2003 9:36 pm

Postby gesf » Wed Sep 17, 2003 11:59 am

Hi there!
Well...by the date i´m think you´ve already fix the bug.

I gave the same answer in this post:
http://www.php-forum.com/p/viewtopic.php?t=1806

I just don´t have sure if php i´ll get already the variables(It´s from an example a have), because i have i problem, and i think you can help me:

I think it´s because of the header. I´m making a simple wap portal, and in my contact page i call contact php, that will send the mail and notification.
The error is: the file contact.php is of type: text/html.

Whatever, can you tell me how can i realy use and embeded php in a wml file!?

Thanks :p[/code]
User avatar
gesf
Moderator
Moderator
 
Posts: 1717
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden


Return to HTML Basics

Who is online

Users browsing this forum: Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.