hellohelp Posted July 10, 2006 Posted July 10, 2006 (edited) Hi all, I created an XSLT stylesheet that is a basic web form. It's the first time I've done such a thing. The only point is to accept a user submissions; users can't edit or read existing records. The problem I'm having is figuring out what URL to use to enable the form to be submitted. For example, I can use: http://mysite.com/fmi/xsl/addrecord.xsl?-new But, when I do this, it creates a blank record upon entering the URL, then another record when I hit the submit button (which has the proper data). I imagine I shouldn't be using the -new command in the URL, but if I use any other command, hitting the submit button will not produce new records. Anybody know what I should be doing instead? Thanks for your help! Tom Edited July 10, 2006 by Guest
Martin Brändle Posted July 11, 2006 Posted July 11, 2006 There are two ways to submit data. Either by a HTTP GET, i.e. by specifying an URL as you did, or by HTTP POST, mostly specified through a form in a web page. You did both one after the other, that's why you got 2 new records. Just load your page by specifying http://mysite.com/fmi/xsl/addrecord.xsl?-grammar=fmresultset&-process This will load your page and the XSLT will be processed, without any submit of data. Then you should be able to hit the submit button and only one record will be created. It could be that your HTML that specifies the form is wrong; if this is the case please post the code here.
Recommended Posts
This topic is 6702 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