two submit buttons [solved]

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

two submit buttons [solved]

Post by s.dot »

I am writing a blogging system, with a preview blog button and a save blog button

the first button (preview blog) works and goes to the page
the second button (save blog) goes to a 404 page not found error (the url in the address bar is correct)

Code: Select all

<form action=\"worker_blog.php\" method=\"post\" name=\"frmPost\">
<input type=\"hidden\" name=\"action\" value=\"createBlog\">

//form elements

<input class=\"submit\" type=\"submit\" name=\"Preview\" value=\"Preview\"> 
<input class=\"submit\" type=\"submit\" name=\"Save\" value=\"Save Blog\">
what could be causing this? I don't get any errors at all from the php code
Last edited by s.dot on Sat Apr 01, 2006 1:23 pm, edited 1 time in total.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

when i get the 404 not found page, I hit refresh and the page shows up, however it doesn't show me the prompt for resending post data.. so im guessing its not being posted :-S
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

meh

seems if i change it to this

Code: Select all

<input class=\"submit\" type=\"submit\" name=\"submit\" value=\"Preview\"> 
<input class=\"submit\" type=\"submit\" name=\"submit\" value=\"Save Blog\">
it works fine. thanks ;)
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply