Re: script php with <img scr...../> [message #180237 is a reply to message #180223] |
Sat, 02 February 2013 11:11 |
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!? thanks :)
i have correct the img attribute but i'm still having the problem... captcha.php runs correctly in browser, the problems seems to be in registar_mail.php...
in debug mode the file captcha.php is not calling by the programe and i don't know why...
others sugestions?
thanks for your time
|
|
|