Results 1 to 6 of 6

Thread: About image buttons

  1. #1
    Join Date
    Apr 2010
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default About image buttons

    hi,

    http://www.dynamicdrive.com/dynamici...army/index.htm

    in this adress, i want to use image buttons on my page.

    everything is ok but when i click any image button my page is refreshing.

    how can i disable this action ?



    thanks...

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Link to the page.

    The script on this site is working fine, so we can't see whats wrong unless we look at your site.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Apr 2010
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    hi,

    i will upload my site and write here again. thanks.

  4. #4
    Join Date
    Apr 2010
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    http://www.yeniduster.com/prens/tr/galeri.aspx

    hi,

    I'm waiting your help. thanks...

  5. #5
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    It appears it is because you have everything wrapped inside form tags set to POST. there is no "submit" button, so any button acts as the submit, and when clicking the images it is submitting the form. Thus, refreshing the page.

    Remove the <form> tags and it should be fine.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  6. The Following User Says Thank You to BLiZZaRD For This Useful Post:

    mustee (04-24-2010)

  7. #6
    Join Date
    Apr 2010
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    that is running...

    thank you very much....

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •