mattonedime Posted October 12, 2006 Share Posted October 12, 2006 Hello..I have a php script that uses <?php echo '<html> to display an entire HTML page.. Well on that HTML page I want to run <?php $_POST["value"]; ?> It seems like it ignores my "embedded" PHP commands.. I am pretty new to this, so any guidence would be great!And heres what I am doing..I have an online store that pulls information from a form, reports it to the customer(this is the step I am not able to get the $_POST results to show), then submits the information to the shopping cart.. This works like a charm if I run the PHP script as a standalone page, its when I try to embed it into the store (which is 100% php) that it stops working.THANKS!! Link to comment https://forums.phpfreaks.com/topic/23804-php-statements-inside-php-statements-im-lost/ Share on other sites More sharing options...
TEENFRONT Posted October 12, 2006 Share Posted October 12, 2006 why echo the entire html document? Only echo the php content.so..<html>blahs blah blah<? echo $value ?>blah blah blah more html stuff..</html>save page as .php Link to comment https://forums.phpfreaks.com/topic/23804-php-statements-inside-php-statements-im-lost/#findComment-108121 Share on other sites More sharing options...
mattonedime Posted October 12, 2006 Author Share Posted October 12, 2006 See, sometimes it takes a simple answer! hahaha Thanks, I took out the ecapsulating <?php ehco ' and it works like a charm.. How did I miss that.. LOL Thanks!!! Link to comment https://forums.phpfreaks.com/topic/23804-php-statements-inside-php-statements-im-lost/#findComment-108134 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.