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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concatinating Strings

Status
Not open for further replies.

mejames

Programmer
Joined
Jun 3, 2003
Messages
4
Location
US
I am looking to concatinate multiple checkbox names into one string and then put it into the value of product down below. Can anyone assist me on how to do that?? Thanks.

<FORM METHOD=&quot;post&quot; ACTION=&quot;<INPUT TYPE=&quot;hidden&quot; NAME=&quot;business&quot; VALUE=&quot;email@aol.com&quot;>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;taxRegion&quot; VALUE=&quot;&quot;>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;taxRate&quot; VALUE=&quot;&quot;>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;return&quot; VALUE=&quot;<INPUT TYPE=&quot;hidden&quot; NAME=&quot;shipOpt1&quot; VALUE=&quot;&quot;>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;shipOpt2&quot; VALUE=&quot;&quot;>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;shipOpt3&quot; VALUE=&quot;&quot;>
<INPUT TYPE= &quot;hidden&quot; NAME=&quot;qty&quot; VALUE=&quot;1&quot;>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;product&quot; VALUE=&quot;Test&quot;>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;item_number&quot; VALUE=&quot;0001&quot;>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;amount&quot; VALUE=&quot;12.96&quot;>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;ship1&quot; VALUE=&quot;&quot;>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;ship2&quot; VALUE=&quot;&quot;>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;ship3&quot; VALUE=&quot;&quot;>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;shipAdd1&quot; VALUE=&quot;&quot;>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;shipAdd2&quot; VALUE=&quot;&quot;>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;shipAdd3&quot; VALUE=&quot;&quot;>
 
thats easy to do using javascript:
in ur form tag add a attribute clled name:
<form name=&quot;FormName&quot;.....>


in ur head tag include this:
<script>
function Concat()
{
strng=document.FormName.business.value
strng+=+&quot;//&quot;+document.FormName.business.value
...

//finally in the field u want the value
document.FormName.fieldname.value=strng
}
</script>

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top