OutFront Forums
     Home    Register     Search      Help      Login    

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

Sponsors
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

 

Prepopulating a form

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP, PHP, and Database >> Prepopulating a form
Page: [1]
 
webgyrl

 

Posts: 52
Joined: 2/9/2009
Status: offline

 
Prepopulating a form - 10/28/2009 18:54:27   
I am trying to allow my users to search for a company and once they find it be able to select it and it takes them to a form where it is
prepopulated with name of the company so they can rate them instead of having to enter the name manually...using asp and frontpage...help
TexasWebDevelopers

 

Posts: 722
Joined: 2/22/2002
From: Dallas, TX
Status: offline

 
RE: Prepopulating a form - 10/29/2009 9:29:07   
Pass the company name as a hidden variable to the next page and then stick it into the value bit of the form text box.
Here is a primer on passing variables from page to page with code...
http://www.texaswebdevelopers.com/examples/passingvariables/

_____________________________

:)

Follow us on TWITTER

(in reply to webgyrl)
bobby

 

Posts: 11479
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
RE: Prepopulating a form - 10/29/2009 15:35:27   
TWD, what a great primer / example of how to do exactly what they asked. Nice tidbit!

The other part of the equation here is how they select a company from a list... the easiest way is to make each search result a link containing the company name as a variable passed to the next page... something like:

<a href="page.asp?coname=COMPANY" >COMPANY</a>

Then you can populate the form field with the variable "coname" on page.asp

It is not hidden, but then again your visitor is selecting the company name from a list so who cares if they can see it in the URL?

Just another way to pass the data once selected...

:)

_____________________________

Talk to your kittens about catnip, or someone else will.


:)

(in reply to TexasWebDevelopers)
Page:   [1]

All Forums >> Web Development >> ASP, PHP, and Database >> Prepopulating a form
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts