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

form does not post variables

Status
Not open for further replies.

sam1996

Programmer
Sep 3, 2006
12
0
0
CA
can any one tell me whats wrong here form is not submitting any variables in URL for action page do I have to use cfform instead.

<form action=" method="post" name="form2" id="form1">
<label>
<select name="prov_id" onChange="findcities(this.options.selectedIndex);">
<OPTION VALUE="">Select a province...</OPTION>
<CFOUTPUT QUERY="allprov">
<OPTION VALUE="#province#">#province#</OPTION>
</CFOUTPUT>
</SELECT>
<select name="city">
<option value="">Select a city...</option>
</select>

</label>
</p>
<p>
<label>
<select name="side">
<option value="downtown">Downtown</option>
<option value="north">North</option>
<option value="south">South</option>
<option value="east">Easet</option>
<option value="west">West</option>
</select>
</label>
<label>
<select name="catg_ID">
<option value="category">Select Category</option>
<cfoutput query="catg_search">
<option value="#catg_search.bizcategory#">#catg_search.bizcategory#</option>
</cfoutput>
</select>
</label>
</p>
<p></p>
<p> </p>
<label>
<input name="Submit" type="submit" value="Submit" color="#FF9933" />
</label>
</form>
 
I used cfdump URL.formelement and URL it gives me error undefind variable and URL struct empty.
 
That is because the form is not putting the data into the URL it is putting it into the FORM structure.

To retrieve the data in the form you need to do

<cfoutput>
#form.catg_ID#
</cfoutput>

DonOmite
 
I ve done that and error element undefined , also I noticed when I view from dreamweaver to Browser does not updated right a way and even when I boot my machine ,some times changes will not reflected right a way , any advice.
 
Try making your form ID and form Name the same thing. See what that does.

As for changes not showing up, clear your browser cache and see if the change shows up.

DonOmite
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top