PHP WML POSTGRESQL

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?
 
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]
 
Back
Top