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

    Join Date
    Jun 2000
    Posts
    5
    Rep Power
    0
    I can not grab the contents of the variable like this:

    print '<input name="key_in" type="text"/>';
    $key_get=$http_get_vars[key_in];
    print "key_get=$key_get<br/>n";

    Thanks in Advance
    Harrytat
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    300
    Rep Power
    15
    It is not as easy as HTML. First, as in HTML you need to name the fileds. Then, those fields becom variables in WML itself which you submit to the script. This is probably not making much sense, so here is an example:

    <input type="text" name="email" maxlength="30"/>
    <p><anchor>Submit<go href="script.php3" method="get">
    <postfield name="email" value="$(email)"/>
    </go></anchor></p>

    Hope this helps!!!
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Posts
    79
    Rep Power
    15
    I don't know a lot of WML but i hope this helps..

    This goes in the wml card u want to send the varible from..
    <do type="accept" label="">
    <go href="file.php" method="post">
    <postfield name="var" value="$(var)"/>
    </go>
    </do>

    <p align="center">
    <small>Insert a Var:</small><br/>
    <input type="text" name="var"/><br/>&nbsp;<br/>

    When the user inputs the var, it will go to file.php which will be in a format like this..

    first..
    <? enter var manipulation or php scripting here ?> (just use $var for the variable)

    then..put this
    <?
    header("Content-type: text/vnd.wap.wml");
    echo "<?xml version="1.0"?>n";
    echo "<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">nn";
    ?>


    Then put your wml in..
    <wml>
    <card id="get" title=""> etc etc
    using $(var) for variables.


    There.
    Good luck

    Basil

Similar Threads

  1. pass php value of a varible to javascript variable
    By fluke_tony in forum JavaScript Development
    Replies: 1
    Last Post: February 13th, 2004, 03:34 AM
  2. php variable issue
    By durilai in forum PHP Development
    Replies: 1
    Last Post: February 9th, 2004, 09:47 PM
  3. pass value from one php page to another php page
    By fluke_tony in forum PHP Development
    Replies: 4
    Last Post: January 27th, 2004, 09:55 PM
  4. Replies: 4
    Last Post: January 27th, 2004, 12:10 PM
  5. Pass Perl variable through PHP to browser?
    By dvd in forum Perl Programming
    Replies: 6
    Last Post: January 18th, 2004, 01:37 PM

IMN logo majestic logo threadwatch logo seochat tools logo