paragvshah
Programmer
Hi Friends,
I am creating my site in Coldfusion & i need help regarding a problem that i am facing in my registration page where there are Textfields, Checkbox, Dropdownselect list, Multipleselect list.
I have hardcoded the values in Dropdownselect list & Multipleselect list which are transferred in to the database & after registration page i have provided a page for Edit profile page where user gets the same format page as of registration & here also values in Droplist & Multiplelist are hardcoded so the problem starts here.
What the user has selected in Droplist & Multiplelist while registration is displayed in edit profile page in Droplist & in Multiplelist but its displaying the value which it picks from dbase as selected & after that it also shows the same value which is hardcoded in the list.(e.g. In country India is selected is shown in Edit profile page as India selected at top of list & also with other countries in the list i.e. hardcoded one) What i want is that it should pick the selected value from database & should check with one in list & should select from that list only.
here is some part of code for reference from Edit profile page:
Multipleselect list
-------------------
<td height="36" valign="top">
<CFOUTPUT QUERY="Update">
<cfset temp ="#field_name_database#">
<select name="field_name_database" multiple size="4">
<cfloop index="temp" list="#temp#" delimiters=",">
<option value="#temp#" selected>#temp#
</cfloop>
<option value="Ae">Ae
<option value="Acs">Acs
<option value="Black">Black
<option value="asd">Asd
</select>
</CFOUTPUT>
</td>
Dropselect list
---------------
<td height="11" valign="top">
<select name="Field_database_name">
<CFOUTPUT QUERY="Update">
<option value="#Field_database_name#">#Field_database_name#
</cfoutput>
<option value="als">als
<option value="Wo">Wo
<option value="Frag">Frag
<option value="Det">Det
</select>
Please help me out.
It would ne very nice if you can either send me code or give me address of the site from where I can down load that code.
regards
Parag Shah
I am creating my site in Coldfusion & i need help regarding a problem that i am facing in my registration page where there are Textfields, Checkbox, Dropdownselect list, Multipleselect list.
I have hardcoded the values in Dropdownselect list & Multipleselect list which are transferred in to the database & after registration page i have provided a page for Edit profile page where user gets the same format page as of registration & here also values in Droplist & Multiplelist are hardcoded so the problem starts here.
What the user has selected in Droplist & Multiplelist while registration is displayed in edit profile page in Droplist & in Multiplelist but its displaying the value which it picks from dbase as selected & after that it also shows the same value which is hardcoded in the list.(e.g. In country India is selected is shown in Edit profile page as India selected at top of list & also with other countries in the list i.e. hardcoded one) What i want is that it should pick the selected value from database & should check with one in list & should select from that list only.
here is some part of code for reference from Edit profile page:
Multipleselect list
-------------------
<td height="36" valign="top">
<CFOUTPUT QUERY="Update">
<cfset temp ="#field_name_database#">
<select name="field_name_database" multiple size="4">
<cfloop index="temp" list="#temp#" delimiters=",">
<option value="#temp#" selected>#temp#
</cfloop>
<option value="Ae">Ae
<option value="Acs">Acs
<option value="Black">Black
<option value="asd">Asd
</select>
</CFOUTPUT>
</td>
Dropselect list
---------------
<td height="11" valign="top">
<select name="Field_database_name">
<CFOUTPUT QUERY="Update">
<option value="#Field_database_name#">#Field_database_name#
</cfoutput>
<option value="als">als
<option value="Wo">Wo
<option value="Frag">Frag
<option value="Det">Det
</select>
Please help me out.
It would ne very nice if you can either send me code or give me address of the site from where I can down load that code.
regards
Parag Shah