Re: script php with <img scr...../> [message #180223 is a reply to message #180221] |
Thu, 31 January 2013 20:09 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
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
==================
|
|
|