|
Posted by peter on 04/03/07 16:14
> 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?
Presumably the page that has this form has the extension .php? The only
other reason I could think that would case this is if in the script you have
the whole of the those 3 lines within single quotes.
Navigation:
[Reply to this message]
|