#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Grantham,Lincs, UK
    Posts
    7
    Rep Power
    0
    I have been trying to replace Submit buttons on a form with images. For some reason it does not post the varables. What am I doing Wrong???

    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre><input type="submit" name="Save" value="Save">
    [/code]
    replaced with:
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
    <input type="image" name="Save" src="../image/button/button_submit.gif" width="85" height="31" border="0" alt="submit">
    [/code]

    Any Help would be greatfully appreciated.
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15
    hello,


    your html is right but remove method from the form tag.

    like this.

    <form action="/">


    [This message has been edited by Shiju Rajan (edited March 21, 2000).]
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Grantham,Lincs, UK
    Posts
    7
    Rep Power
    0
    Hello...thanks for the help.

    Below is the test I currently use when processing the Posted Varibles. Would I be right in thinking that this is not the format used when submitting with and image as It still does not work. Outside of the loop the varibles are simply available as $MyVar from the posted form.

    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>while (is_array($HTTP_POST_VARS) && list($key, $val) = each($HTTP_POST_VARS))[/code]
    Duncan

Similar Threads

  1. multiple submit buttons
    By darkane in forum HTML Programming
    Replies: 2
    Last Post: February 4th, 2004, 05:40 PM
  2. Multiple submit buttons on one form
    By Cormac in forum PHP Development
    Replies: 3
    Last Post: January 29th, 2004, 09:52 AM
  3. using 2 submit buttons ?
    By stojan in forum HTML Programming
    Replies: 2
    Last Post: January 17th, 2004, 01:59 PM
  4. Many submit buttons?
    By jackass in forum PHP Development
    Replies: 4
    Last Post: November 7th, 2003, 11:53 AM
  5. Disabled submit problem with radio buttons & history
    By DEfusion in forum HTML Programming
    Replies: 7
    Last Post: November 5th, 2003, 11:26 AM

IMN logo majestic logo threadwatch logo seochat tools logo