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)
Navigation:
[Reply to this message]
|