Re: My help with adding captcha
| From: | Tijnema ! | Date: | Mon, 12 Mar 2007 21:24:05 +0000 |
| Subject: | Re: My help with adding captcha | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-250325@lists.php.net to get a copy of this message | ||
On 3/12/07, Joker7 <sat_ring@hotmail.com> wrote:
In news: 45F4C278.6090607@gmail.com, Chris said: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>'; TijnemaWhen 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. ChrisJoker7 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/
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php