Zerocool
02-19-2007, 02:48 PM
I have a small problem that is driving me nuts!!
I have an SQL Database set and have a small website that read datfrom it uses ColdFusion.
What I need to do is have a value submitted via a form and the data in the new pages opens up with reference only to the value submitted from the form. (????)
This is the from used :
<FORM action="teamdetails.cfm" TARGET="Blank" METHOD="Post" VALUE="name">
<select size="6">
<option value = "Doulgas">Douglas</option>
<option value = "Rileys">Rileys</option>
<option value = "Railway">Railway</option>
<option value = "OldeMIll">Olde Mill</option>
<option value = "The Vault">The Vault</option>
<option value = "Michelin">Michelin</option>
<option value = "Fairmuir">Fairmuir</option>
<option value = "NorthEnd">North End</option>
<option value = "Whitfield">Whitfield</option>
<option value = "Newport">Newport</option>
<option value = "Tivoli">Tivoli</option>
<option value = "DD1">DD1</option>
</select>
</br>
</br>
<input type="submit" name="teamname" value="Show Me">
</center>
</form>
This is the CF Query on the page "teamdetails.cfm" that will display the data. I want to only dispaly the data that matches the request from the previous page.
<CFQUERY NAME = "info" datasource = "sql_0603051">
SELECT name,clubadd,clubph,captain,captainph,vice,vicepn,notes
WHERE "teamselectedfrompreviousepage" teams.name
FROM teams
</CFQUERY>
any suggestions?
I would also like the window to open up in a new window with no menus etc
TIA
I have an SQL Database set and have a small website that read datfrom it uses ColdFusion.
What I need to do is have a value submitted via a form and the data in the new pages opens up with reference only to the value submitted from the form. (????)
This is the from used :
<FORM action="teamdetails.cfm" TARGET="Blank" METHOD="Post" VALUE="name">
<select size="6">
<option value = "Doulgas">Douglas</option>
<option value = "Rileys">Rileys</option>
<option value = "Railway">Railway</option>
<option value = "OldeMIll">Olde Mill</option>
<option value = "The Vault">The Vault</option>
<option value = "Michelin">Michelin</option>
<option value = "Fairmuir">Fairmuir</option>
<option value = "NorthEnd">North End</option>
<option value = "Whitfield">Whitfield</option>
<option value = "Newport">Newport</option>
<option value = "Tivoli">Tivoli</option>
<option value = "DD1">DD1</option>
</select>
</br>
</br>
<input type="submit" name="teamname" value="Show Me">
</center>
</form>
This is the CF Query on the page "teamdetails.cfm" that will display the data. I want to only dispaly the data that matches the request from the previous page.
<CFQUERY NAME = "info" datasource = "sql_0603051">
SELECT name,clubadd,clubph,captain,captainph,vice,vicepn,notes
WHERE "teamselectedfrompreviousepage" teams.name
FROM teams
</CFQUERY>
any suggestions?
I would also like the window to open up in a new window with no menus etc
TIA