Correct WML

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    Originally posted by thanatos View Post
    I see u use REQUEST but ur go href method is POST. i think REQUEST is different from POST ;-)
    yes its different it includes both POST and GET values
    Advertise your mobile site for FREE with AdTwirl

    Comment


      #32
      yep so i add this
      --
      $who = mysql_real_escape_string($_POST["who"] );
      $pmtou1 = mysql_real_escape_string($_POST["pmtou1"] );

      i think "request" is in xhtml
      Last edited by WereWolveZ; 18.01.10, 15:16.

      Comment


        #33
        Originally posted by WereWolveZ View Post
        yep so i add this
        --
        $who = mysql_real_escape_string($_POST["who"] );
        $pmtou1 = mysql_real_escape_string($_POST["pmtou1"] );

        i think "request" is in xhtml
        no its not xhtml, you can do this with request:

        PHP Code:
        $who mysql_real_escape_string($_REQUEST["who"] ); 
        $pmtou1 mysql_real_escape_string($_REQUEST["pmtou1"] ); 
        Advertise your mobile site for FREE with AdTwirl

        Comment


          #34
          Your form in full working order use $_POST["pmtou1"] and $_POST["who"] to retrieve the fields it will work . The $_REQUEST also has access to cookies.

          PHP Code:
          else if($action=="toall")
          {
          addonline(getuid_sid($sid),"Owner Tools","");
          echo 
          "<card id=\"main\" title=\"Owner Tools\">";
          echo 
          "<p align=\"center\">";
          echo 
          "<b>Owner Tools</b>";
          echo 
          "</p><p>";
          echo 
          "Message: <input name=\"pmtou1\" maxlength=\"250\"/><br/>";
          echo 
          "Recipient:"
          echo 
          "<select name=\"who\" multiple=\"false\">";
          echo 
          "<option value=\"online\">Online Members Only</option>";
          echo 
          "</select><br/>";
          echo 
          "</p><p align=\"center\">";
          echo 
          "<anchor>Update";
          echo 
          "<go href=\"ownrproc.php?action=prvtall2&amp;sid=$sid\" method=\"post\">";
          echo 
          "<postfield name=\"pmtou1\" value=\"$(pmtou1)\"/>";
          echo 
          "<postfield name=\"who\" value=\"$(who)\"/>";
          echo 
          "</go></anchor><br/>";
          echo 
          "<a href=\"index.php?action=main&amp;sid=$sid\">Main Menu</a>";
          echo 
          "</p>";
          echo 
          "</card>";

          Last edited by wap2k; 19.01.10, 18:42.

          Comment

          Working...
          X