You are here: Re: "value" field passes value too literally! « PHP Programming Language « IT news, forums, messages
Re: "value" field passes value too literally!

Posted by Rami Elomaa on 04/03/07 20:06

usenet@isotopeREEMOOVEmedia.com kirjoitti:
> On 3 Apr 2007 08:24:22 -0700, rynato@gmail.com wrote:
>
>> Simple question, probably a simple answer:
>>
>> I have a php-based email form. There are three hidden variables passed
>>from the initial page to the php script which handles sending the
>> message:
>>
>> <input type="hidden" name="ip" value="<?php echo $ipi ?>" />
>> <input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
>> <input type="hidden" name="httpagent" value="<?php echo $httpagenti ?
>>> " />
>>
>> Everything works fine, I do get sent the message when I fill out and
>> submit the form, but the three values above are passed as literally,
>> the values seen above within the quotes. That is, I get:
>>
>> Additional Info : IP = <?php echo $ipi ?>
>> Browser Info: <?php echo $httpagenti ?>
>> Referral : <?php echo $httprefi ?>
>>
>> in the body of the email. Why? And what can I do to fix this?
>
> This shouldn't cause the problem, but the semicolons are missing at the end of
> the php statements.

Well clearly that's not the problem. A semicolon may be omitted in such
a case.

As we Read The Fine Manual, we see the following: "The closing tag of a
block of PHP code automatically implies a semicolon; you do not need to
have a semicolon terminating the last line of a PHP block."

http://fi.php.net/manual/en/language.basic-syntax.instruction-separation.php

--
Rami.Elomaa@gmail.com
"Olemme apinoiden planeetalla."

 

Navigation:

[Reply to this 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

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