By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,841 Members | 840 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,841 IT Pros & Developers. It's quick & easy.

How to create and submit a form programatically

P: n/a
Hi there on this rainy old day,

I have some users logging into an website. The server the site sits
on allows users to webmail through a common service/component called Horde.
In order to log onto Horde webmail the users have to fill in 5 fields. I
wanted to simplify things for them so they only had to click a button once
logged into the site.

At the moment i do this by recreating the form on my webform making all the
fields hidden and then pumping values into each of the hidden fields
including a screen scraped session key from Horde via the page onload event.

It works fine but i dont like the implementation. I think its a poor hack.

Instead i want to programmatically create the form (not include hidden form
fields etc in the html) and attach the values for each of the fields to the
form object and then submit it programatically to the Horde service for
validation and logon. And if the logon was valid i also want to launch the
webmail window into a new window (programatically please, i know about html
_blank, etc) but if it fails i want to use my site to show the error

This should be dead simple but i cant find the docs for it.



Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.