two submit buttons [solved]
Posted: Sat Apr 01, 2006 1:06 pm
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)
what could be causing this? I don't get any errors at all from the php code
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\">