#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    12
    Rep Power
    0
    Well, yes I'm new here I use PHP with WML. After a simple form (login & password) I check if they are correct (with MySQL) and if yes:
    echo ("<card ontimer="lesson.wml">n");
    echo ("<timer value="30"/>n");
    echo ("<p> Password ".$pass." accepted for login ".$find." </p>n");

    what I want is to the next page lesson.wml the variable $find to exist with the value it had here. Meaning I want to keep the login name to the next page. How can I do that????????
  2. #2
  3. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Brussels, Belgium
    Posts
    14,646
    Rep Power
    4492
    There are a couple ways to do it.

    If the user is submitting another form, you can pass it along as a hidden element

    <input type=hidden name="find" value="<?php echo $find; ?>">

    Or,you can append the value onto the end of a hyperlink

    <a href="page2.php?find=<?php echo $find; ?>">Click here</a>

    I don't know if sessions or cookies work with wml, but those would be options also...

    ---John Holmes...

Similar Threads

  1. Replies: 1
    Last Post: February 10th, 2004, 09:22 PM
  2. Pass variable without PHP
    By boardhigh in forum PHP Development
    Replies: 2
    Last Post: December 17th, 2003, 01:40 PM
  3. pass command() a variable, not a string
    By kiph in forum C Programming
    Replies: 9
    Last Post: December 5th, 2003, 11:40 AM
  4. using href to pass a variable
    By tomkocz in forum HTML Programming
    Replies: 4
    Last Post: November 20th, 2003, 11:09 AM
  5. Open new window and pass a variable
    By vikaspa in forum HTML Programming
    Replies: 2
    Last Post: November 18th, 2003, 09:53 AM

IMN logo majestic logo threadwatch logo seochat tools logo