# Variable in iframe src Error

**URL:** <https://forum.kirupa.com/t/variable-in-iframe-src-error/330121>\
**Category:** programming\
**Created:** [December 3, 2012, 11:33pm UTC](https://forum.kirupa.com/t/variable-in-iframe-src-error/330121 "2012-12-03T23:33:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ikoten](https://avatars.discourse-cdn.com/v4/letter/i/9d8465/32.png) [@Ikoten](https://forum.kirupa.com/u/Ikoten)\
**Post date:** [December 3, 2012, 11:33pm UTC](https://forum.kirupa.com/t/variable-in-iframe-src-error/330121/1 "2012-12-03T23:33:39Z")

</div>

Hi I’m trying to figure out why this isn’t yielding any results. Any insight very much appreciated. I have a .html page and eventually I will try to load this variable in from a database but for now I’m just taking it in baby steps.

my variable:

```auto

<?php
$spreadLink='https://docs.google.com/spreadsheet/embeddedform?formkey=dHlzZmxrX0tLenppNFhsQUxqSmEzZmc6MQ';
?>

```

```auto
<iframe src="<?php echo $spreadLink; ?>" width="250" height="445px" frameborder="0" marginheight="0" marginwidth="0" scrolling="no">Loading...</iframe>

```

but when I go to view my html the iframe hasn’t parsed the php and I get a ‘page cannot be displayed’ error. Is there something I need to include in my html file? Something I need to do on my server side?
