url parameter question
Posted on 2005-05-05
i think this is pretty simple, but i've been struggling with it for awhile so i figured i'd ask for some help. my problem is this. i have a coldfusion page, page1.cfm, that passes a url parameter to a second coldfusion page, page2.cfm. i'm getting the value passed over fine. my problem is that page2.cfm submits to itself. when it submits to itself, i get an error that url.incidentnumber is not defined. how can i store the value of url.incidentnumber when page1.cfm sends it to page2.cfm, but not attempt to read it when page2.cfm submits to itself? thanks.
<cfparam name="URL.IncidentNumber" type="string">
<input type="button" name="SubmitForm" value="Find" onClick="this.form.submit()">