Results 1 to 10 of 11
Hybrid View
-
9th Dec 2011, 07:08 AM #1OPMemberWebsite's:
allskip.comNeed 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> ?>
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
-
9th Dec 2011, 07:57 AM #2Just Another CoderCode:
<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>
Method should be GET in form when you are using GET, and the syntax of get is $_GET
-
9th Dec 2011, 03:52 PM #3OPMemberWebsite's:
allskip.comneed some more help plz....
-
9th Dec 2011, 04:03 PM #4Respected MemberWebsite's:
DL4Everything.com Soft2050.inTry 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>';
}
?>
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>';
}
?>
-
9th Dec 2011, 04:45 PM #5OPMemberWebsite's:
allskip.com
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 ????
-
9th Dec 2011, 04:10 PM #6Respected 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>';
-
9th Dec 2011, 04:50 PM #7MemberWebsite's:
wscripts.net damnlolscript.com lulzjet.comaction="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
-
9th Dec 2011, 04:58 PM #8OPMemberWebsite's:
allskip.comah 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 ??
-
9th Dec 2011, 05:02 PM #9Respected MemberWebsite's:
DL4Everything.com Soft2050.inSimply recieve the details from the same variable
$_GET["link"] if using GET METHOD or $_POST["link"] if POST
Then output the data
-
9th Dec 2011, 05:04 PM #10OPMemberWebsite's:
allskip.comAhh ha Thanks For help Guys
i'm not a coder lol so don't know much about coding..
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
themaCreator - create posts from...
Version 3.47 released. Open older version (or...