|
-
Feb 28th, 2008, 12:59 AM
#1
Thread Starter
Junior Member
click on picture
Hello friends Can U Help Me
I used This Method
$cardname=$_POST[card];
echo "CardValue- $cardname";
echo"<input border='0' src='image/1.jpg' name='card' width='102' height='97' type='image' value='1'>";
My Problem Is that When i click on picture It does not show Or Take The value of Picture in IE But Properly Work In Firefox .
Can any one help me out
thanks in advance
-
Feb 28th, 2008, 01:48 AM
#2
Addicted Member
Re: click on picture
Try using the attribute ID. So that
Code:
echo"<input border='0' src='image/1.jpg' name='card' width='102' height='97' type='image' value='1'>";
will look like this
Code:
echo"<input border='0' src='image/1.jpg' id='card' name='card' width='102' height='97' type='image' value='1'>";
Regards
Srinivasan Baskaran
India
-
Feb 28th, 2008, 01:53 AM
#3
-
Feb 28th, 2008, 03:01 AM
#4
Re: click on picture
You also shouldn't be using echo to produce HTML.
-
Feb 28th, 2008, 08:53 AM
#5
Addicted Member
-
Feb 28th, 2008, 06:05 PM
#6
Re: click on picture
You shouldn't use print either.
-
Feb 28th, 2008, 06:50 PM
#7
Re: click on picture
expanding on visualad....
you should never use php to show HTML code, use html to show html... example:
PHP Code:
<?php if ($imcool == True) { ?> <b><i><whatevertag>Dylan is cool</whatevertag></i></b> <?php } else { ?> <b><i><whatevertag>Dylan is <font color='FF0000'>NOT</font> cool</whatevertag></i></b> <?php { ?>
NOTE: it looks disorganized, but with a good editor, you can make it look neat.
My usual boring signature: Something
-
Feb 28th, 2008, 08:15 PM
#8
Re: click on picture
PHP Code:
<?php if (something): ?> <something /> <?php else: ?> <something-else /> <?php endif; ?>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|