Funmobile Popup Help

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

    Funmobile Popup Help

    hello can anyone help me plese i got a problem amusing funmobile xhtml and wml in one scipt i codded the popup inmy script after finished the siye works but the popup doent because i cnt view it in list .php i keep seeing this errorParse error:



    Parse error: syntax error, unexpected $end in /home/micro/public_html/lists.php on line 8399


    and this is the code is used in list.php


    if($action=="sendto")
    {
    addonline(getuid_ses($ses),"sending popup","");
    if($mime== WEB)
    {
    echo webhead($uthm,$stitle);
    echo "<p align=\"center\">";
    echo "$getbuttons

    ";
    $whonick = getnick_uid($who);
    $byuid = getuid_ses($ses);
    echo "Sending to ".$whonick."
    ";
    echo "<input name=\"msg\" maxlength=\"150\"/>
    ";
    echo "<anchor>SEND<go href=\"popus.php?action=send&amp;who=$who&amp;ses= $ses\" method=\"post\">";
    echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
    echo "<postfield name=\"who\" value=\"$(who)\"/>";
    echo "</go></anchor>




    <a href=\"index.php?action=main&amp;ses=$ses\">Home</a>";
    echo "</p>";
    echo webfoot();
    }else{
    echo waphead($stitle);
    echo "<card id=\"main\" title=\"popups\">";
    echo "<p align=\"center\">";
    echo "$getbuttons

    ";
    $whonick = getnick_uid($who);
    $byuid = getuid_sid($ses);
    echo "Sending to ".$whonick."
    ";
    echo "<input name=\"msg\" maxlength=\"150\"/>
    ";
    echo "<anchor>SEND<go href=\"popus.php?action=send&amp;who=$who&amp;ses= $ses\" method=\"post\">";
    echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
    echo "<postfield name=\"who\" value=\"$(who)\"/>";
    echo "</go></anchor>
    ";
    echo "


    <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
    echo "</p>";
    echo "</card>";
    echo wapfoot();
    }

    #2
    make it

    else if($action=="sendto")
    {
    addonline(getuid_ses($ses),"sending popup","");
    if($mime== WEB)
    {
    echo webhead($uthm,$stitle);
    echo "<p align=\"center\">";
    echo "$getbuttons

    ";
    $whonick = getnick_uid($who);
    $byuid = getuid_ses($ses);
    echo "Sending to ".$whonick."
    ";
    echo "<input name=\"msg\" maxlength=\"150\"/>
    ";
    echo "<anchor>SEND<go href=\"popus.php?action=send&amp;who=$who&amp;ses= $ses\" method=\"post\">";
    echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
    echo "<postfield name=\"who\" value=\"$(who)\"/>";
    echo "</go></anchor>




    <a href=\"index.php?action=main&amp;ses=$ses\">Home</a>";
    echo "</p>";
    echo webfoot();
    }else{
    echo waphead($stitle);
    echo "<card id=\"main\" title=\"popups\">";
    echo "<p align=\"center\">";
    echo "$getbuttons

    ";
    $whonick = getnick_uid($who);
    $byuid = getuid_sid($ses);
    echo "Sending to ".$whonick."
    ";
    echo "<input name=\"msg\" maxlength=\"150\"/>
    ";
    echo "<anchor>SEND<go href=\"popus.php?action=send&amp;who=$who&amp;ses= $ses\" method=\"post\">";
    echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
    echo "<postfield name=\"who\" value=\"$(who)\"/>";
    echo "</go></anchor>
    ";
    echo "


    <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
    echo "</p>";
    echo "</card>";
    echo wapfoot();
    }

    Comment


      #3
      make it

      else if($action=="sendto")
      {
      addonline(getuid_ses($ses),"sending popup","");
      if($mime== WEB)
      {
      echo webhead($uthm,$stitle);
      echo "<p align=\"center\">";
      echo "$getbuttons

      ";
      $whonick = getnick_uid($who);
      $byuid = getuid_ses($ses);
      echo "Sending to ".$whonick."
      ";
      echo "<input name=\"msg\" maxlength=\"150\"/>
      ";
      echo "<anchor>SEND<go href=\"popus.php?action=send&amp;who=$who&amp;ses= $ses\" method=\"post\">";
      echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
      echo "<postfield name=\"who\" value=\"$(who)\"/>";
      echo "</go></anchor>




      <a href=\"index.php?action=main&amp;ses=$ses\">Home</a>";
      echo "</p>";
      echo webfoot();
      }else{
      echo waphead($stitle);
      echo "<card id=\"main\" title=\"popups\">";
      echo "<p align=\"center\">";
      echo "$getbuttons

      ";
      $whonick = getnick_uid($who);
      $byuid = getuid_sid($ses);
      echo "Sending to ".$whonick."
      ";
      echo "<input name=\"msg\" maxlength=\"150\"/>
      ";
      echo "<anchor>SEND<go href=\"popus.php?action=send&amp;who=$who&amp;ses= $ses\" method=\"post\">";
      echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
      echo "<postfield name=\"who\" value=\"$(who)\"/>";
      echo "</go></anchor>
      ";
      echo "


      <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
      echo "</p>";
      echo "</card>";
      echo wapfoot();
      }[/b]
      that does nothing[/b]
      that dosent help all you did was change the

      <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'> if($action=="sendto")</div>

      to

      <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'> else if($action=="sendto")</div>


      i tired that already

      Comment


        #4
        its so simple u 4got 2 put a } at the end add 1 more to end nd ur error should b gone

        Comment


          #5
          its so simple u 4got 2 put a } at the end add 1 more to end nd ur error should b gone[/b]

          ok i will try

          Comment


            #6
            ok i will try[/b]

            fixed now i got a nother prob when you go on the user name and click popup there is a msg box to send the popup but the send link is there like a word and it should be able to click whats wrong anyone can help heres the code

            <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>else if($action=="sendto")
            {
            addonline(getuid_ses($ses),"sending popup","");
            if($mime== WEB)
            {
            echo webhead($uthm,$stitle);
            echo "<p align=\"center\">";
            echo "$getbuttons

            ";
            $whonick = getnick_uid($who);
            $byuid = getuid_ses($ses);
            echo "Sending to ".$whonick."
            ";
            echo "<input name=\"msg\" maxlength=\"150\"/>
            ";
            echo "<anchor>SEND<go href=\"popus.php?action=send&amp;who=$who&amp;sid= $sid\" method=\"post\">";
            echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
            echo "<postfield name=\"who\" value=\"$(who)\"/>";
            echo "</go></anchor>




            <a href=\"index.php?action=main&amp;ses=$ses\">Home</a>";
            echo "</p>";
            echo webfoot();
            }else{
            echo waphead($stitle);
            echo "<card id=\"main\" title=\"popups\">";
            echo "<p align=\"center\">";
            echo "$getbuttons

            ";
            $whonick = getnick_uid($who);
            $byuid = getuid_sid($ses);
            echo "Sending to ".$whonick."
            ";
            echo "<input name=\"msg\" maxlength=\"150\"/>
            ";
            echo "<anchor>SEND<go href=\"popus.php?action=send&amp;who=$who&amp;ses= $ses\" method=\"post\">";
            echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
            echo "<postfield name=\"who\" value=\"$(who)\"/>";
            echo "</go></anchor>
            ";
            echo "


            <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
            echo "</p>";
            echo "</card>";
            echo wapfoot();
            }

            }</div>

            Comment


              #7
              this should fix ur prob

              Code:
              else if($action=="sendto")
              {
              addonline(getuid_ses($ses),"sending popup","");
              if($mime== WEB)
              {
              echo webhead($uthm,$stitle);
              echo "<p align=\"center\">";
              echo "$getbuttons 
              
              ";
              $whonick = getnick_uid($who);
              $byuid = getuid_ses($ses);
              echo "Sending to ".$whonick."
              ";
              echo "<form action=\"popus.php?action=send&amp;who=$who&amp;sid=$sid\" method=\"post\">";
              echo "<input name=\"msg\" maxlength=\"150\"/>
              ";
              echo "<input type=\"hidden\" name=\"who\" value=\"$who\">";
              echo "<input type=\"Submit\" Value=\"Send\"></form>";
              
              <a href=\"index.php?action=main&amp;ses=$ses\">Home</a>";
              echo "</p>";
              echo webfoot();
              }else{
              echo waphead($stitle);
              echo "<card id=\"main\" title=\"popups\">";
              echo "<p align=\"center\">";
              echo "$getbuttons 
              
              ";
              $whonick = getnick_uid($who);
              $byuid = getuid_sid($ses);
              echo "Sending to ".$whonick."
              ";
              echo "<input name=\"msg\" maxlength=\"150\"/>
              ";
              echo "<anchor>SEND<go href=\"popus.php?action=send&amp;who=$who&amp;ses=$ses\" method=\"post\">";
              echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
              echo "<postfield name=\"who\" value=\"$(who)\"/>";
              echo "</go></anchor>
              ";
              echo "
              
              
              <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
              echo "</p>";
              echo "</card>";
              echo wapfoot();
              }
              }

              Comment


                #8
                nope that dosent work i get 2 send buttons and they click bt it dosent send to the user why i dont know

                Comment

                Working...
                X