SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 37 of 37
  1. #26
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    4,826
    Mentioned
    142 Post(s)
    Tagged
    0 Thread(s)
    You need two variables ?page=dd&id=???????? where ?????????? is the id for the swf file.

    Then in your dd.php replace all [param] with <?php echo filter_var($_GET['id'], FILTER_SANITIZE_STRING); ?>
    Be sure to congratulate xMog on earning April's Member of the Month
    Go ahead and blame me, I still won't lose any sleep over it
    My Blog | My Technical Notes

  2. #27
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what about this

    PHP Code:
    echo'
    <iframe width="560" height="315" src="http://www.youtube.com/embed/'
    .$_GET['url'].'" frameborder="0" allowfullscreen></iframe>'

  3. #28
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    4,826
    Mentioned
    142 Post(s)
    Tagged
    0 Thread(s)
    What about it? That looks to have nothing to do with your dd.php file.
    Be sure to congratulate xMog on earning April's Member of the Month
    Go ahead and blame me, I still won't lose any sleep over it
    My Blog | My Technical Notes

  4. #29
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks man you rock problem solved really thanks

  5. #30
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how i can use single veriable in url

    at this time its using two

    dd&id

  6. #31
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how i can use single veriable in url instead of two
    http://utguyiui.webatu.com/index.php?page=dd&id=k3g6iiAEAuyt1N3TPDF

  7. #32
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    any help for this that how i can use 1 veriable in url

  8. #33
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how i can use single veriable in url instead of double
    http://utguyiui.webatu.com/index.php?page=dd&id=k3g6iiAEAuyt1N3TPDF

    bcz this url is using single veriable http://veedio.info/dailymotion.php?url=k3g6iiAEAuyt1N3TPDF

    or what will be the code to get id=523632 from url for {param}

    Code:
    <center><div><object width="700" height="530"><param name="movie" 
    
    value="http://www.dailymotion.com/swf/{param}&v3=1&related=1"></param><param 
    
    name="allowFullScreen" value="true"></param><param name="allowScriptAccess" 
    
    value="always"></param><embed src="http://www.dailymotion.com/swf/{param}&v3=1&related=1" 
    
    type="application/x-shockwave-flash" width="700" height="530" allowFullScreen="true" 
    
    allowScriptAccess="always"></embed></object></div>
    i want to get id from url for {param}

    http://veedio.info/dailymotion.php?url=k3g6iiAEAuyt1N3TPDF

    it should be something like this <?php echo _var($_GET['id'] ?>
    bcz <?php echo filter_var($_GET['id'], FILTER_SANITIZE_STRING); ?> this work for 2 veriables

  9. #34
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    confisued for this just look into this please

  10. #35
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how we can write this with open and close tag of php

    <iframe width="560" height="315" src="http://www.youtube.com/embed/'.$_GET['url'].'" frameborder="0" allowfullscreen></iframe>

    bcz its using .$_GET['url'].

  11. #36
    SitePoint Enthusiast
    Join Date
    Mar 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how we can write this with open and close tag of php

    Code:
    <iframe width="560" height="315"
    src="http://www.youtube.com/embed/'.$_GET['url'].'" frameborder="0"
    allowfullscreen></iframe>
    bcz its using .$_GET['url'].

    it would be like this ?

    Code:
    <?php
    <iframe width="560" height="315"
    src="http://www.youtube.com/embed/'.$_GET['url'].'" frameborder="0"
    allowfullscreen></iframe>
     ?>
    Code:
    can we use this like 
    <iframe width="560" height="315"
    src="http://www.youtube.com/embed/'<?php .$_GET['url']. ?>'" frameborder="0"
    allowfullscreen></iframe>
    please correct me

  12. #37
    SitePoint Member
    Join Date
    Mar 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    This might help you out

    Are you trying to do like this:

    Create a page "video.php"
    PHP Code:
    <?php
    $id 
    $_GET["id"];
    echo 
    "<iframe width='560' height='315' src='http://www.youtube.com/embed/$id' frameborder='0' allowfullscreen></iframe>";
    ?>
    If you want to access any youtube video with just id access it like below url:

    http://example.com/video.php?id=vW4IzAjbqCU

    I hope this will be helpful for you!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •