Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing from three text fields into one hidden field for a search page

Status
Not open for further replies.

ScottNeth

Technical User
Mar 11, 2002
44
US
I need to pass a hidden variable called BTN that consists of three parts of a phone number (the area code, the NXX, and the line number). The three parts have to be entered seperately in three text fields on one search page - how exactly do I funnel them into a single string in a hidden field which I can then passed as a URL? I thought this would be a simple task of crating a hidden field with #NPA##NXX##Line# - but I get a URL of ...??BTN=%23NPA%23%23NXX%23%23LINE%23. tried <cfoutput>#NPA##NXX##LINE#</Cfoutput> -but that throws and error. I also figured out I have to pull the entry table out of the submit form, but I still can't get the correct output. Scott Neth
Web Designer/Cyberpunk
 
hmm you might be able to do something like this - but bear in mind this is with ASP and Access - not the ColdFusion version.

&quot;#&quot; & Request.Form(&quot;NPA&quot;) & Request.Form(&quot;NXX&quot;) & Request.Form(&quot;LINE&quot;) & &quot;#&quot; &quot;Damn the torpedoes, full speed ahead!&quot;

-Adm. James Farragut

Stuart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top