Submiting the results of a form without using a submitbutton

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sportryd
Forum Newbie
Posts: 1
Joined: Mon Jan 25, 2010 3:01 pm

Submiting the results of a form without using a submitbutton

Post by sportryd »

I am new at PHP coding so forgive me if this is either and obvious answer or something that just can't be done...

I am setting up a webpage so that the user has a consistent looking menu. Two of the menu buttons link directly to separate pages. The third allows the user to pick a product and then select options for that selected product on the next page.

Now, I can see how this can be done with a popup selection box and a "submit" button and then use a GET or POST function to send the data to the next page; however, I would like this button to keep the look and feel, rollover and click actions of the rest of the menu.

So, is there any way to do this with a non-standard button? I have thought about putting a function call as a rollover action, or I guess I could create a single database entry in MySQL ( although this seems to be a painful way to do this ). Am I on the right track?

Thanks ahead for any help..
JakeJ
Forum Regular
Posts: 675
Joined: Thu Dec 10, 2009 6:27 pm

Re: Submiting the results of a form without using a submitbutton

Post by JakeJ »

Rather than a button, you could use URL text, a image of some kind, or like you said, I rollover.

The question is, do you really want users to have to submit data in a very non-obvious way?
Post Reply