niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » PHP
reload php-image
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
julian_m
*nix forums addict


Joined: 27 Jul 2005
Posts: 57

PostPosted: Tue Jul 18, 2006 7:47 pm    Post subject: reload php-image Reply with quote

I've, inside an html page, an image which is created through a php file
:


<img src="<?php echo 'captcha.php'; ?>">

file captcha.php, sends
header("Content-type: image/png");

All works fine, but I need to reload the image (a new captcha code
should be generated) without reloading the enitre page. Are there any
solution? I'll post a similar question in javascript forums

I'm working on a "post comment" form using ajax.

regards - julian
Back to top
flamer
*nix forums beginner


Joined: 06 Jul 2006
Posts: 36

PostPosted: Tue Jul 18, 2006 9:53 pm    Post subject: Re: reload php-image Reply with quote

julian_m wrote:

Quote:
I've, inside an html page, an image which is created through a php file
:


img src="<?php echo 'captcha.php'; ?>"

file captcha.php, sends
header("Content-type: image/png");

All works fine, but I need to reload the image (a new captcha code
should be generated) without reloading the enitre page. Are there any
solution? I'll post a similar question in javascript forums

I'm working on a "post comment" form using ajax.

regards - julian

No not without refreshing the page, js is the only way, also why do you
have php echo ""; in the image tag, couldn't you just have <img
src="captcha.php"> thats what I do.

Flamer.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 7:01 am | All times are GMT
navigation Forum index » Programming » PHP
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts WSQ image library (for fingerprints) released info@cognaxon.com C++ 0 Wed Jul 19, 2006 9:33 am
No new posts Solaris 8 install image and software v1 and v3 images BertieBigBollox@gmail.com Solaris 2 Tue Jul 18, 2006 2:07 pm
No new posts mksysb, image.data and problem serwan@gdzies.tam.na.il.p AIX 4 Mon Jul 17, 2006 10:25 am
No new posts mksysb, image.data, problem serwan@gdzies.tam.na.il.p AIX 0 Mon Jul 17, 2006 10:25 am
No new posts Intel Celeron D for Web server and Image work? x0054 hardware 1 Tue Jul 11, 2006 3:49 am

Mobile Phone | Credit Cards | Discount Magazines | Problem Mortgage | Virgin credit card
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1267s ][ Queries: 16 (0.0335s) ][ GZIP on - Debug on ]