Does anyone know a php code for width and height

Discussion in 'PHP' started by TokyoSama, May 26, 2012.

  1. #1
    Does anyone know a php code for width and height? I'm trying to make an video page for iframe embed, I'm trying to make it like this myspace.php?id=[video id]&w=[width]&h=[height]

    I already know the php code for video id. I need to know what the code for width and height can someone help me?
     
    TokyoSama, May 26, 2012 IP
  2. Deltazon

    Deltazon Member

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #2
    Take $_GET['w'] and $_GET['h'] and add it to your iframe. For instance, <iframe src="http://website.com/" height="<? echo $_GET['h']; ?>px" width="<?php echo $_GET['w']; ?>px"></iframe>

    Do not forget to take only the integers of these GET values.
     
    Deltazon, May 26, 2012 IP