PHP WML POSTGRESQL

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
asvur
Forum Newbie
Posts: 5
Joined: Tue Jul 22, 2003 1:04 am

PHP WML POSTGRESQL

Post by asvur »

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?
Last edited by asvur on Tue Jul 22, 2003 2:21 am, edited 1 time in total.
Denzo
Forum Newbie
Posts: 21
Joined: Sat Jun 21, 2003 4:01 am

Post by Denzo »

value should be without the dollar signs.
asvur
Forum Newbie
Posts: 5
Joined: Tue Jul 22, 2003 1:04 am

Post by asvur »

I have also tried :

<?php
echo $name;
echo $pin;
?>

but it does not work.
Post Reply