# Unable to use include in my php script

**URL:** <https://forum.kirupa.com/t/unable-to-use-include-in-my-php-script/226757>\
**Category:** programming\
**Created:** [May 23, 2007, 6:58pm UTC](https://forum.kirupa.com/t/unable-to-use-include-in-my-php-script/226757 "2007-05-23T18:58:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr\_Chulito](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@Mr\_Chulito](https://forum.kirupa.com/u/Mr_Chulito)\
**Post date:** [May 23, 2007, 6:58pm UTC](https://forum.kirupa.com/t/unable-to-use-include-in-my-php-script/226757/1 "2007-05-23T18:58:02Z")

</div>

Hello all,

I need some help with this script

\<?php  
include (‘connect.php’);  
$cd = $\_POST[‘cd’];  
$edition = $\_POST[‘edition’];  
if ($cd == “some\_cd”){  
if ($edition == “normal”){  
$price = 15;  
} else if ($edition == “special”){  
$price = 17;  
}  
} else if ($cd == “other\_cd”){  
// other options…  
}

echo ("&price=$price&");  
echo ("&connection=$host&");  
?\>

when I get the variables to load into a text object in flash, it only shows  
\>\>\> undefined connecting to: undefined \<\<\<\<

if I comment out the \>\> include \<\< line it gives works fine,

can some one please take a look an tell me what I’m doing wrong?.. thank you very much.
