A
Anonymous
Guest
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?
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?