Hi Bukh and welcome to the forum
Are you trying to do this through Instant Web Publishing [IWP] or Custom Web Publishing / PHP?
Not a native function with FileMaker over the web unfortunately, but you can get a plug-in that works in both IWP or CWP called SuperContainer that may be worth looking into.
A number of script steps are not compatible with web publishing in FileMaker. To see all script steps Compatible over the web in the Edit Script dialog, bottom left, Tick 'Indicate Web Compatibility' in FM 9 or in FM 10: under 'Show Compatibility' select 'Web Publishing'
Hoe this helps
Thanks a lot! =)