Activity Stream
48,167 MEMBERS
6820 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Hybrid View

DevilLnC Need Some help in PHP plz....... 9th Dec 2011, 07:08 AM
fdls <form method="get"... 9th Dec 2011, 07:57 AM
DevilLnC need some more help plz.... 9th Dec 2011, 03:52 PM
soft2050 Try this: <form method="GET"... 9th Dec 2011, 04:03 PM
DevilLnC took out all of the errors but when... 9th Dec 2011, 04:45 PM
Lock Down OK the problem is you can't just... 9th Dec 2011, 04:10 PM
t3od0r action="enteryoururl.php" is the... 9th Dec 2011, 04:50 PM
DevilLnC ah ha thanks BRO u saved my Ass :D... 9th Dec 2011, 04:58 PM
soft2050 Simply recieve the details from the... 9th Dec 2011, 05:02 PM
DevilLnC Ahh ha Thanks For help Guys :) i'm... 9th Dec 2011, 05:04 PM
Mr Happy Step 1 is getting it working which... 9th Dec 2011, 05:05 PM
Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Member
    Website's:
    allskip.com

    Default Need Some help in PHP plz.......

    Hello GUY plz help me with PHP and this code.....Actually i don't really know PHP so i just watched some tute and wrote this Code

    Code: 
    <form method="post" action="">
    <input type=text size=8 />
    <input type=submit />
    </form>
    
    <? php
    
    $url=_GET('submit');
    
    <object id="flashplayer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="400">
    <param name="movie" value="player.swf" />
    <param name="allowFullScreen" value="true" />
    <param name="allowScriptAccess" value="always" />
    <param name="FlashVars" value="plugins=plugins/proxy.swf&proxy.link=$url" />
    <embed name="flashplayer" src="player.swf"  FlashVars="plugins=plugins/proxy.swf&proxy.link=$url"  type="application/x-shockwave-flash" allowfullscreen="true"  allowScriptAccess="always" width="600" height="400" />
    </object>
    
    ?>
    But when i use it in my Site it gave me this error

    Code: 
    Parse error:  syntax error, unexpected T_VARIABLE in /home/allskip/public_html/wp-content/themes/UltraLight/page.php on line 42
    DevilLnC Reviewed by DevilLnC on . Need Some help in PHP plz....... Hello GUY plz help me with PHP and this code.....Actually i don't really know PHP so i just watched some tute and wrote this Code <form method="post" action=""> <input type=text size=8 /> <input type=submit /> </form> <? php $url=_GET('submit'); Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Just Another Coder
    Code: 
    <form method="get" action="test.php">
    Enter url: <input type="text" name="link" />
    <input type="submit" value="Submit" />
    </form>
    
    <?php
    $url= $_GET["link"];
    ?>
    
    <object id="flashplayer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="400">
    <param name="movie" value="player.swf" />
    <param name="allowFullScreen" value="true" />
    <param name="allowScriptAccess" value="always" />
    <param name="FlashVars" value="plugins=plugins/proxy.swf&proxy.link=$url" />
    <embed name="flashplayer" src="player.swf"  FlashVars="plugins=plugins/proxy.swf&proxy.link=$url"  type="application/x-shockwave-flash" allowfullscreen="true"  allowScriptAccess="always" width="600" height="400" />
    </object>
    Modified it according to my knowledge. Do test it

    Method should be GET in form when you are using GET, and the syntax of get is $_GET

  4.     
    #3
    Member
    Website's:
    allskip.com
    need some more help plz....

  5.     
    #4
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Try this:
    PHP Code: 
    <form method="GET" action="enteryoururl.php">
    Enter url: <input type="text" name="link" />
    <input type="submit" value="Submit" />
    </form>

    <?php
    if (isset($_GET["link"])) {
    $url$_GET["link"];
    echo 
    '<object id="flashplayer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="400">
    <param name="movie" value="player.swf" />
    <param name="allowFullScreen" value="true" />
    <param name="allowScriptAccess" value="always" />
    <param name="FlashVars" value="plugins=plugins/proxy.swf&proxy.link=$url" />
    <embed name="flashplayer" src="player.swf"  FlashVars="plugins=plugins/proxy.swf&proxy.link=' 
    $url '"  type="application/x-shockwave-flash" allowfullscreen="true"  allowScriptAccess="always" width="600" height="400" />
    </object>'
    ;
    }
    ?>
    However, i would suggest you this one using the POST method:
    PHP Code: 
    <form method="POST" action="enteryoururl.php">
    Enter url: <input type="text" name="link" />
    <input type="submit" value="Submit" name="Submit" />
    </form>

    <?php
    if (isset($_POST["link"]) and isset($_POST["Submit"])) {
    $url$_POST["link"];
    echo 
    '<object id="flashplayer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="400">
    <param name="movie" value="player.swf" />
    <param name="allowFullScreen" value="true" />
    <param name="allowScriptAccess" value="always" />
    <param name="FlashVars" value="plugins=plugins/proxy.swf&proxy.link=$url" />
    <embed name="flashplayer" src="player.swf"   FlashVars="plugins=plugins/proxy.swf&proxy.link=' 
    $url '"   type="application/x-shockwave-flash" allowfullscreen="true"   allowScriptAccess="always" width="600" height="400" />
    </object>'
    ;
    }
    ?>

  6.     
    #5
    Member
    Website's:
    allskip.com
    Quote Originally Posted by soft2050 View Post
    Try this:
    PHP Code: 
    <form method="GET" action="enteryoururl.php">
    Enter url: <input type="text" name="link" />
    <input type="submit" value="Submit" />
    </form>

    <?php
    if (isset($_GET["link"])) {
    $url$_GET["link"];
    echo 
    '<object id="flashplayer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="400">
    <param name="movie" value="player.swf" />
    <param name="allowFullScreen" value="true" />
    <param name="allowScriptAccess" value="always" />
    <param name="FlashVars" value="plugins=plugins/proxy.swf&proxy.link=$url" />
    <embed name="flashplayer" src="player.swf"  FlashVars="plugins=plugins/proxy.swf&proxy.link=' 
    $url '"  type="application/x-shockwave-flash" allowfullscreen="true"  allowScriptAccess="always" width="600" height="400" />
    </object>'
    ;
    }
    ?>
    However, i would suggest you this one using the POST method:
    PHP Code: 
    <form method="POST" action="enteryoururl.php">
    Enter url: <input type="text" name="link" />
    <input type="submit" value="Submit" name="Submit" />
    </form>

    <?php
    if (isset($_POST["link"]) and isset($_POST["Submit"])) {
    $url$_POST["link"];
    echo 
    '<object id="flashplayer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="400">
    <param name="movie" value="player.swf" />
    <param name="allowFullScreen" value="true" />
    <param name="allowScriptAccess" value="always" />
    <param name="FlashVars" value="plugins=plugins/proxy.swf&proxy.link=$url" />
    <embed name="flashplayer" src="player.swf"   FlashVars="plugins=plugins/proxy.swf&proxy.link=' 
    $url '"   type="application/x-shockwave-flash" allowfullscreen="true"   allowScriptAccess="always" width="600" height="400" />
    </object>'
    ;
    }
    ?>

    took out all of the errors but when i CLick on Submit Button it says Nothng Found, the enteryoururl.php in action what should i put in it ????

  7.     
    #6
    Respected Member
    OK the problem is you can't just stick html code in between <?php and ?>

    You need to echo that code. Secondly what are you defining in the get a filename?

    You didn't explain that in the form so how would anyone know.

    TO fix the error possibly since you are not showing 42 lines of code try replacing the object code with this:
    PHP Code: 

    echo '
    <object id="flashplayer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
     width="600" height="400">
     <param name="movie" value="player.swf" />
     <param name="allowFullScreen" value="true" />
     <param name="allowScriptAccess" value="always" />
     <param name="FlashVars" 
    value="plugins=plugins/proxy.swf&proxy.link='
    .$url.'" /> 
    <embed name="flashplayer" src="player.swf" 
     FlashVars="plugins=plugins/proxy.swf&proxy.link='
    .$url.'" 
     type="application/x-shockwave-flash" allowfullscreen="true" 
     allowScriptAccess="always" width="600" height="400" /> </object>'


  8.     
    #7
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    action="enteryoururl.php" is the file where the form should be submitted

    leave action="" if you have the php code on the same page with the form
    or enter the filename of the file where your php code is

  9.     
    #8
    Member
    Website's:
    allskip.com
    ah ha thanks BRO u saved my Ass worked Like a Butter now haha just 1 more lil help i have a One more URL Box for another host can u tell me how to make it worked with single URL box ??

  10.     
    #9
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Simply recieve the details from the same variable
    $_GET["link"] if using GET METHOD or $_POST["link"] if POST
    Then output the data

  11.     
    #10
    Member
    Website's:
    allskip.com
    Ahh ha Thanks For help Guys i'm not a coder lol so don't know much about coding..

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

BE SOCIAL