FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » script php with <img scr...../>
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: script php with <img scr...../> [message #180238 is a reply to message #180223] Sat, 02 February 2013 11:20 Go to previous messageGo to previous message
sferreira1979 is currently offline  sferreira1979
Messages: 3
Registered: January 2013
Karma:
Junior Member
Quinta-feira, 31 de Janeiro de 2013 20:09:40 UTC, Jerry Stuckle escreveu:
> On 1/31/2013 1:11 PM, sferreira1979(at)gmail(dot)com wrote:
>
>> Hi,
>
>>
>
>> i'm a portuguese's student and i'm trying to learn php by myself (with books and php.net) but i'm experiencing a problem on one of my test:
>
>> i have two files: registar_mail.php and captcha.php
>
>> captcha.php display an image witch should appear on my file registar_mail.php using
>
>> <img src="captcha.php"/> but the image doesn't appear :(
>
>> i have been looking for a solution in forums but i don't find anything witch works with me... i'm working with netbeans and xampp
>
>>
>
> <snip code>
>
>>
>
>> could someone help me to understand what is the problem???
>
>>
>
>> thanks :)
>
>>
>
>
>
> You have a typo in your html:
>
>
>
> <img scr='captcha.php' alt="imagem ausente"/>
>
> ^^^
>
>
>
> Should be "src"
>
>
>
> A good way to determine whether the problem is in your html or the
>
> captcha code is to try to load the image in your browser, i.e.,
>
>
>
> http://www.example.com/captcha.php
>
>
>
> If the image displays, the problem is *probably* in your html (there's
>
> always that bug... :) ). If the image doesn't show, you *probably* have
>
> a problem in your captcha php file.
>
>
>
> --
>
> ==================
>
> Remove the "x" from my email address
>
> Jerry Stuckle
>
> JDS Computer Training Corp.
>
> jstucklex(at)attglobal(dot)net
>
> ==================

hi again?!
my mistake... i have an other error when i test others issues...
i correct the img tag attribute end it's working :)
<img src='captcha.php'alt="imagem ausente"/>

the session is needing to make this verification: // verifica se o código captcha está correto
if($_SESSION['codigo'] == $_POST['codigo'])

finally solved :)
thanks
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: compatibility between php 5.3.21 and 5.3.15 for pgsql
Next Topic: change a string where have number after a word
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 17:47:04 GMT 2024

Total time taken to generate the page: 0.06282 seconds