Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Dec 2005
    Posts
    80
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Submit button not working [was: MySQL queery doesn't work with Windows]

    I am developing on a Mac and constantly check under Windows that everything looks as it should. For the first time, it's not a layout issue that I am encountering but a database one.

    Whereas my DB queries work just fine under OS X with Safari and Firefox, I get a "Couldn't execute query" error in IE 6 in Windows (I didn't check with other browsers).

    I am not sure where to look for the cause of this problem.

    The search page is at:
    http://www.partylist.com/0new/pl.php...search=parties

    I am including the search forms and the result page as an attachment.
    Attached Files Attached Files
    Last edited by guelphdad; 04-02-2007 at 10:54 PM.

  • #2
    Super Moderator guelphdad's Avatar
    Join Date
    Mar 2006
    Location
    St. Catharines, Ontario Canada
    Posts
    2,634
    Thanks
    4
    Thanked 148 Times in 139 Posts
    your queries will work fine under any platform. mysql works independent of platform. you thus have problems somewhere else in your code.

  • #3
    New Coder
    Join Date
    Dec 2005
    Posts
    80
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think I found the culprit but I don't understand why it's not working. The forms that produce the error have an image as submit button:

    <input type="image" src="images/go_round_white.gif" align="middle" value="go!" name="searchparties_simple">

    When I replace it by a regular submit button like this, it works:

    <input type="submit" align="middle" value="go!" name="searchparties_simple">

    How an I get the image submit button to work?

  • #4
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,047
    Thanks
    2
    Thanked 316 Times in 308 Posts
    Read the following link to find out how to get PHP to work with an image submit button - http://www.php.net/manual/en/faq.htm...tml.form-image
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.


  •  

    Posting Permissions

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