RE: [PHP-WIN] Parse error when using Javascript & php?
| From: | Mike Flynn | Date: | Fri, 29 Mar 2002 20:39:57 +0000 |
| Subject: | RE: [PHP-WIN] Parse error when using Javascript & php? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-12837@lists.php.net to get a copy of this message | ||
IFrames don't use the 'value' property, so your second approach was right -- putting the content between the iframe tags. Now, do you know that IFrames are only supported by Internet Explorer and not Netscape Navigator? They are used on almost *no* sites.. so you may want to consider that before using them in your own. They aren't an accepted standard.
At any rate, putting <? echo "$news"; ?>, or more preferably, <?php echo $news; ?>, between the <iframe> and </iframe> tags will work, assuming you are using a browser that supports them.
Have you tried looking at the source code that is generated by the page? That is something everyone should probably do before posting a question to the list.
-Mike
At 02:17 PM 3/29/2002 -0600, Todd Williamsen wrote:
DOH!! Thanks ross Umm... Now I cannot get the value of $news to display in the IFRAME... I used value="<? Echo "$news"; ?>, that didn't work Then I put <? Echo "$news"; ?> between the <iframe> tags, that didn't work either Any suggestions?