popodc Posted November 7, 2006 Share Posted November 7, 2006 [code] <? if (!$excel) { echo '<form action="emp_dtr.php" method="get" target="_parent"> <input type="hidden" name="eid" value="<?= $_GET[eid] ?>">'; } ?>[/code]can anyone check if this is correct? thanks! Cheers, Link to comment https://forums.phpfreaks.com/topic/26393-nested-php-error-pls-check/ Share on other sites More sharing options...
bqallover Posted November 7, 2006 Share Posted November 7, 2006 In your echo statement, you're already 'in' PHP, so you don't need the <?= ?> bit. Instead try:[code]<? if (!$excel) { echo '<form action="emp_dtr.php" method="get" target="_parent"> <input type="hidden" name="eid" value="' . $_GET['eid'] . '">'; }?>[/code]edit: apostrophes in the $_GET :) Link to comment https://forums.phpfreaks.com/topic/26393-nested-php-error-pls-check/#findComment-120691 Share on other sites More sharing options...
trq Posted November 7, 2006 Share Posted November 7, 2006 1. Your using short tags instead of the full <?php tag.2. Where do you define $excel ?3. You dont need more <? ?> tags because your already within php. Link to comment https://forums.phpfreaks.com/topic/26393-nested-php-error-pls-check/#findComment-120692 Share on other sites More sharing options...
popodc Posted November 7, 2006 Author Share Posted November 7, 2006 thanks for the help! nice forums! :D Link to comment https://forums.phpfreaks.com/topic/26393-nested-php-error-pls-check/#findComment-120696 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.