# Need help escaping Quotes on getURL

**URL:** <https://forum.kirupa.com/t/need-help-escaping-quotes-on-geturl/241031>\
**Category:** flash\
**Created:** [October 9, 2007, 3:01pm UTC](https://forum.kirupa.com/t/need-help-escaping-quotes-on-geturl/241031 "2007-10-09T15:01:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevisazombie](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kevisazombie/32/3903_2.png) [@kevisazombie](https://forum.kirupa.com/u/kevisazombie)\
**Post date:** [October 9, 2007, 3:01pm UTC](https://forum.kirupa.com/t/need-help-escaping-quotes-on-geturl/241031/1 "2007-10-09T15:01:24Z")

</div>

Hi all,

I have this small function that is giving me a headache. When called it is supposed to pull a .php page with the same name as the button that has been clicked. The name is passed through the pageName argument. I cannot figure out the right way to set the quotes on this. the way i have it set now seems like it should work. This always drives me nuts. Any help is much appreciated

```auto
function populateIframe(pageName){
    trace("loading iframe " + pageName);
    getURL("javascript:loadintoIframe('main', \""+pageName+"\".php");
};

```
