van2 Posted September 5, 2006 Share Posted September 5, 2006 Hi,I have the strangest problem: I have a site that navigates through dynamic php pages in a sort of "wizard" format. The entire script is one big file, so it keeps calling itself and relies on POST and SESSION variables to know what's going on.I'm using html POST forms on each page and have only server-side validation, and do not want to use any client side script. Here's the strange thing: I'm using html <BUTTON type="submit"> tags inside html FORMS. Most buttons work, but using the exact same code in other places, it displays correctly, but simply doesn't react. Have tried all of the following:1. Tried three different web browsers2. changed form method to "GET"3. changed action field of form4. added name, value parameters to buttons and form5. added various additional fields to the formThe only thing that made it work was changing to <INPUT> instead of <BUTTON>, but this isn't good, since I'm using uniform stylized buttons everywhere. And here's the strangest thing: one of the buttons doesn't work at all, another one works about every third click!Anybody have any idea what this could be?PHP v.4.4.4 w/ apache 2.1 and latest browsersHere's the code in its most basic form (which doesn't work):<form method="post" action="index.php"><button type="submit">push here</button></form> Quote Link to comment Share on other sites More sharing options...
Unknown User Posted September 5, 2006 Share Posted September 5, 2006 Wow thats wierd, i only just started makeing my webpage and don't know to much, but perhaps if you gave each button its own name?<form method="post" action="index.php"><button type="submit" name="submit1">push here</button></form>?? IDK Quote Link to comment Share on other sites More sharing options...
Wintergreen Posted September 5, 2006 Share Posted September 5, 2006 I'd agree with the name thing, although it almost sounds like all your submit buttons are on the same form? Quote Link to comment Share on other sites More sharing options...
perezf Posted September 5, 2006 Share Posted September 5, 2006 try this[code]<input type="submit" name="submit1" value="push here">[/code]instead of this[code]<button type="submit" name="submit1">push here</button>[/code] Quote Link to comment Share on other sites More sharing options...
van2 Posted September 5, 2006 Author Share Posted September 5, 2006 Thanks for the comments, I figured it out, i forgot to remove an empty (invisible) dreamweaver layer just above a portion of the the top of the page, so the layer was absorbing the clicks for all buttons that it covered! That's why some clicks were successful others weren't. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.