Welcome to WebmasterWorld Guest from 3.209.80.87

Forum Moderators: open

Message Too Old, No Replies

Download after form completion

Download after form completion

     
1:03 pm on Oct 9, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:June 17, 2003
posts:50
votes: 0


Hi,

we will offer the possibility to download trial software directly from our site.

What I like to do is :

* when someone wants to download a trial, he gets a form which he has to complete and were the submit button is disabled
* after completing all the fields in the form, the submit buttom must be enabled and the form is submitted to our offices
* folowing the submission the page refreshes to the valid download link for the trial
* this way we can follow up who's downloading the trials.

Thank you for all the help I can get.

Regards,
Karl

5:21 pm on Oct 9, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


That's more than HTML alone will do.

It will take server side scripting to accomplish the job properly. Whatever language you have available will need to accept, verify, and store the data that was given in the form input, and then direct the browser to the fulfillment page.

8:11 am on Oct 10, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:June 17, 2003
posts:50
votes: 0


Hi Tedster,

thank you for the respons, but is there a way in html to just disable the send button until all fields are completed? Possibly in java script? I cannot use server site scripting since our site is hosted by a third party provider and we do not have a webserver ourself.

10:38 am on Oct 10, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member penders is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2006
posts: 3148
votes: 4


...is there a way in html to just disable the send button until all fields are completed? Possibly in java script?

Yes, this could be done with JavaScript. It would essentially have the same effect as validating the form after submission and halting the submission of the form if all fields have not been completed OK - informing the user of what has been missed. I would have said this was the prefered method.

However, any form validation (disabling of submit btn etc.) needs to be backed up by a server-side script that does the final form validation. The JavaScript is only used to create a nice interface for the user in this case. A user can easily disable JavaScript in their browser which will bypass your form validation or even prevent the form from being submitted (if you have disabled the submit btn from the outset). A user could also look at the source and access the link directly.

1:27 pm on Oct 10, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member kaled is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 2, 2003
posts:3710
votes: 0


People hate having to fill in forms to download software. Unless this is an absolute must-have, people will just ignore it.

If you must do it without server-side scripting (using an email address as the form action - yuck) then you simply need form validation code attached to the onsubmit event of the form. If validation is successful, it must open a popup window to initiate the download before submission proceeds. (Actually, since this would require the user's email client to open, it might work without using a popup.)

Without server-side scripting, this will be awful - don't bother!

Kaled.

2:56 pm on Oct 10, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:June 17, 2003
posts:50
votes: 0


Ok, thank you for all the help.
I only want to see who downloaded the software to follow them up.
It's not "life nescessary" to have this, but it would be nice if it could :-)