html - Saving Input form variables -


i trying save form variables 2 date fields normal <input type='text' id="startdate" value="" /> reason when dump form variables using <cfdump var="#form#"> not showing exist.

page 1

<form name="generatereport" method="post" action="_location_queries.cfm">  <select name="location" id="loc" multiple="multiple">     <!---<option selected value="">select location</option>--->     <option value="operations">operations</option>     <option value="ccc">contact center</option>     <option value="qa">qa department</option>     <option value="ds">desoto</option>     <option value="ps">palma sola</option>     <option value="lwr">lakewood ranch</option>     <option value="nr">north river</option>     <option value="sdl">sdl</option> </select>  <button id="add" type="button">add all</button> <button id="rem" type="button">remove all</button>  <textarea id="selected"></textarea>  <br /><br />  <label for="startdate">from</label> <input type='text' id="startdate" value="" />  <br /><br />  <label for="enddate">to</label> <input type='text' id="enddate" value="" />  <br /><br />  <input type="submit"  name="submit" value="continue" />  </form>  

page 2

<cfdump var="#form#"> <cfdump var="#variables#"> <cfset date1 = #createodbcdatetime(form.startdate & '00:00:00')#>  <cfoutput>#date1#</cfoutput> 

enter image description here

the input fields need name attribute. have id attribute.


Comments