Reply to Re: Newbie Needs Help With echo()

Your name:

Reply:


Posted by Krustov on 02/01/07 03:21

<comp.lang.php>
<>
<31 Jan 2007 18:57:37 -0800>
<1170298657.702642.20080@h3g2000cwc.googlegroups.com>

> I had never even looked at PHP until a few hours ago. I'm trying to
> get someone else's code to work. My sense is that the error will be
> pretty obvious to someone familar with the language. The lines of
> code below don't work -- some of the PHP is actually shown in the
> browser window. What am I missing?
>
> Thanks in advance....
>
> Matt
>
> echo ("<input type=\"hidden\" name=\"x_description\" value=\"" .
> $x_Description . "\">\n" );
> echo ("<input type=\"hidden\" name=\"x_login\" value=\"" . $loginid .
> "\">\n");
> echo ("<input type=\"hidden\" name=\"x_amount\" value=\"" . $amount .
> "\">\n");
>

print "<input type=hidden name=\"x_description\" value=\"$x_Description
\">\n";
print "<input type=hidden name=\"x_login\" value=\"$loginid\">\n";
print "<input type=hidden name=\"x_amount\" value=\"$amount\">\n";

Normally that type of <input> isnt ouputted to the browser as its really
intended to pass hidden information to the next page via a form .

<input type=hidden name="x_description" value="<?php print
$x_Description; ?>">
<input type=hidden name="x_login" value="<?php print $loginid; ?>">
<input type=hidden name="x_amount" value="<?php print $amount; ?>">


--
www.phptakeaway.co.uk
(work in progress)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация