Submit buttons

They have: 16 posts

Joined: Jan 2006

I know this may be easy to a lot of people, but I'm still learning. How can I use a submit button to go to another page on the same site. No forms to fill out, just "continue" buttons, etc. What html form, input and values do I need?

Busy's picture

He has: 6,151 posts

Joined: May 2001

Just a form as normal with action="location" (location being next page).

Really you can just use 'next' text links, or a image link, or button (is html tag but doesn't work in all browsers thou)

They have: 16 posts

Joined: Jan 2006

When I tried to rename the file "nextpage.html", it gave me a "405 Method Not Allowed The requested method POST is not allowed for the URL /~bonus-in/nextpage.html." message. I thought I needed to link the pages somehow.

Busy's picture

He has: 6,151 posts

Joined: May 2001

You can do this:

page1
go to page 2

page 2
go to page 1

or if you want the form method, you can do this:
page1

page 2
go to page 1

I gave the form method first off as you asked for form values, ideally the first example here is the best (text links), just rename page1 and page2 to whatever your pages are called

They have: 140 posts

Joined: Apr 2006

Here is the code:

seavista's picture

He has: 4 posts

Joined: Apr 2006

If you are using the Javascript method posted by "ablye", you might want to use a function instead of the inline method. This allows for more flexibility for browser sniffing or alternate handling for the user.

The Webmistress's picture

She has: 5,586 posts

Joined: Feb 2001

Why are you wanting to use forms when this seems to be a straight forward internal link to another page?

They have: 140 posts

Joined: Apr 2006

Probably because a button would probably look better on this page and stand out more than a regular link.

The Webmistress's picture

She has: 5,586 posts

Joined: Feb 2001

If that's the case then a graphic button would be better and it is still a straight link rather than a form

demonhale's picture

He has: 3,278 posts

Joined: May 2005

you can actually achieve a button link effect using css...
You can do a mouse-over or on-click event...

To give you an idea, visit this site I made for a client, the navigation at the top looks like a button, try to move your mouse over the links...

http://www.weborganize.net

They have: 16 posts

Joined: Jan 2006

I just think the buttons look better. If you know where I can download those graphic buttons or how to do the mouse-over, please let me know.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.