Re: My help with adding captcha

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/12/07, Joker7 <sat_ring@xxxxxxxxxxx> wrote:

In news: 45F4C278.6090607@xxxxxxxxx,
Chris  said:
>> Joker7 wrote:
>>> Hi- as you know I have been working on adding a captcha image to my
>>> guestbook.
>>> Well I have managed to get a very basic one working ;) but !I have
>>> been trying to get one that would make it more easy to use ,I have
>>> it working until I add it to my form.
>>>
>>> My form use's print see below and I need to add this to it:
>>>
>>>
>>> <img style="vertical-align: middle" src="<?php echo
>>> captchaImgUrl()?>"><input name="captcha" size="8"/>
>>> <a href="<?php echo captchaWavUrl()?>">Listen To This</a>
>>
>> And what happens when you try?
>>
>> There's nothing in that snippet that shows an error (missing a
>> semi-colon won't stop it printing as Tijnema suggested).
>>
>>
>> --
>> Postgresql & php tutorials
>> http://www.designmagick.com/

When it "prints" it will print   http://site.com/<?php
echocaptchaImgUrl()?>
<a href="site.com/<?php echo captchaWavUrl()?>"> and not the link formate
as
below.

<img style="vertical-align: middle"
src="?captchaimg=1&captchasalt=1769934">
<a href="?captchawav=1&captchasalt=1769934">

I hope I have made my self clear.
Chris


I don't understand it completly i think, but you are printing PHP code.
I think you are printing it now like so:
echo '<img style="vertical-align: middle" src="<?php echo
captchaImgUrl()?>"><input name="captcha" size="8"/>
<a href="<?php echo captchaWavUrl()?>">Listen To This</a>';
then you should change it to
echo '<img style="vertical-align: middle" src="'.captchaImgUrl().'"><input
name="captcha" size="8"/>
<a href="'.captchaWavUrl().'">Listen To This</a>';

Tijnema



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux