Results 1 to 8 of 8

Thread: click on picture

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2007
    Posts
    16

    Question 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

  2. #2
    Addicted Member
    Join Date
    Oct 2006
    Location
    Chennai, India
    Posts
    198

    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

  3. #3
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: click on picture

    Is that all your code? This might sound stupid, but is your <input> in a <form> tag?


    Has someone helped you? Then you can Rate their helpful post.

  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: click on picture

    You also shouldn't be using echo to produce HTML.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  5. #5
    Addicted Member
    Join Date
    Mar 2006
    Posts
    235

    Re: click on picture


  6. #6
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: click on picture

    You shouldn't use print either.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  7. #7
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    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

  8. #8
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    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
  •  



Click Here to Expand Forum to Full Width