July 10, 200619 yr 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, 200619 yr by Guest
July 11, 200619 yr 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.
Create an account or sign in to comment