pcourterelle Posted October 25, 2002 Posted October 25, 2002 I've sorted through the forum for an answer to this problem but have not found it...if this is a faq i apologize.. very simple...adding a new record with one field only (see below)...I click submit and encounter the ubiquitious Error 4. When I click the back button to return to the initial screen and click submit again, the -new request works fine and the correct format page is returned. Any thoughts... <html> <body> <h3>Enter Date Below</h3> <form action = "FMPro" method = "post"> <input type = "hidden" name = "-db" value = "Calendar.fp5"> <input type = "hidden" name = "-lay" value = "Pressroom"> <input type = "hidden" name = "-format" value = "pr results.html"> <p> <input type = "date" name = "todays date" value = ""> <input type = "submit" name = "-new" value = "Enter"> </p> </form> </body> </html>
Garry Claridge Posted October 26, 2002 Posted October 26, 2002 I think the spaces in the names of the field and the format file may be causing problems. You could also try adding this line to the form: <input type="hidden" name="-new"> Also spaces are usually not in the assignments of the form tags, e.g.: <form action="FMPro" method="post> The date will use a "text" input type, e.g.: <input type="text" name="todaysdate" value=""> Good Luck. Garry
pcourterelle Posted October 26, 2002 Author Posted October 26, 2002 Garry....muchas gracias...I'll make the changes and see how it goes...
pcourterelle Posted October 28, 2002 Author Posted October 28, 2002 Garry....additing <input type = "hidden" name = "-new"> seems to have done the trick....thanks pc
Recommended Posts
This topic is 8330 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now