By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,061 Members | 1,515 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,061 IT Pros & Developers. It's quick & easy.

reload php-image

P: n/a
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

Jul 18 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

julian_m wrote:
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.

Jul 18 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.