Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #8157

Re: script php with <img scr...../>

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: script php with <img scr...../>
Date 2013-01-31 15:09 -0500
Organization A noiseless patient Spider
Message-ID <keej2e$2nb$1@dont-email.me> (permalink)
References <8693c99b-2331-4f2a-bc3b-4f30d3d2d819@googlegroups.com>

Show all headers | View raw


On 1/31/2013 1:11 PM, sferreira1979@gmail.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@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

script php with <img scr...../> sferreira1979@gmail.com - 2013-01-31 10:11 -0800
  Re: script php with <img scr...../> "J.O. Aho" <user@example.net> - 2013-01-31 20:57 +0100
  Re: script php with <img scr...../> Jerry Stuckle <jstucklex@attglobal.net> - 2013-01-31 15:09 -0500
    Re: script php with <img scr...../> sferreira1979@gmail.com - 2013-02-02 03:11 -0800
    Re: script php with <img scr...../> sferreira1979@gmail.com - 2013-02-02 03:20 -0800
  Re: script php with <img scr...../> The Natural Philosopher <tnp@invalid.invalid> - 2013-01-31 20:37 +0000
    Re: script php with <img scr...../> Jerry Stuckle <jstucklex@attglobal.net> - 2013-01-31 15:42 -0500
    Re: script php with <img scr...../> Christoph Becker <cmbecker69@gmx.de> - 2013-01-31 23:19 +0100
      Re: script php with <img scr...../> The Natural Philosopher <tnp@invalid.invalid> - 2013-02-01 00:34 +0000
        Re: script php with <img scr...../> Jerry Stuckle <jstucklex@attglobal.net> - 2013-01-31 20:16 -0500
          Re: script php with <img scr...../> Scott Johnson <noonehome@chalupasworld.com> - 2013-02-01 12:11 -0800
        Re: script php with <img scr...../> Christoph Becker <cmbecker69@gmx.de> - 2013-02-05 23:57 +0100
          Re: script php with <img scr...../> The Natural Philosopher <tnp@invalid.invalid> - 2013-02-05 23:11 +0000
            Re: script php with <img scr...../> Christoph Becker <cmbecker69@gmx.de> - 2013-02-06 00:21 +0100

csiph-web