Pre-Fill a User Form

Question:
I’d like to implement a script on my Web site that I’ve seen on other sites. This script asks visitors to register for free through a form as a requirement for browsing a company database. When visitors browse the database and spot a company (or companies) they’re interested in, they can click on an e-mail link. This link opens up a Web page that has a form with their personal information already filled out, so they just need to add their message and send it away. I assume this is done through cookies, but which script allows me to set and retrieve those cookies so that they fill preset gaps in a given form?

Answer:
It is more likely that the code uses Active Server Pages to access the data. It is easy to pre-set HTML controls with the value of a field from a database by mixing the HTML with the ASP. Note that the recordset field is used as the value property of the HTML textbox.

<%@ Language=VBScript %><%Set  RS = Server.CreateObject("ADODB.Recordset")RS.Open "Select * From Authors","FileDSN=Pubs"%>

>

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

The Latest

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS