Submit buttons
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?
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 posted this at 10:32 — 16th April 2006.
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)
xyphlo posted this at 18:17 — 20th April 2006.
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 posted this at 21:54 — 20th April 2006.
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
ablaye posted this at 16:08 — 21st April 2006.
They have: 140 posts
Joined: Apr 2006
Here is the code:
seavista posted this at 19:57 — 21st April 2006.
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.
http://www.SeavistaSoftware.com - Website Design & Development
The Webmistress posted this at 09:02 — 22nd April 2006.
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?
ablaye posted this at 16:44 — 22nd April 2006.
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 posted this at 16:46 — 22nd April 2006.
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 posted this at 16:50 — 22nd April 2006.
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
xyphlo posted this at 05:34 — 28th April 2006.
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.