You are here: Technology, Web & Business Forum
: Web Development
: Programming
:
ColdFusion, why do I keep getting an error because there is a undefined URL...
|
Welcome to the Technology, Web & Business Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Programming Discuss programming languages such as .NET, PHP, PERL, ASP, ColdFusion, C++
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
|||
...parameter? <cfif url.adminID EQ 1>
<div align="center">Select a table from above to Update.</div> <cfelse> <cfswitch expression="#url.adminID#"> <cfcase value="1"> <cfquery name="GetData" datasource="bmxDB"> SELECT updates FROM updatesTbl </cfquery><hr /> <div align="center"><span class="mediaName">Updates</span><br /> <textarea name="updates" cols="40" rows="10"><cfoutput>#GetData.updates#</cfoutput></textarea></div> </cfcase> <cfdefaultcase> <div align="center">Select a table from above to Update.</div> </cfdefaultcase> </cfswitch> </cfif> In my URL link I have a page called admin.cfm to get the CFSWITCH to work, it needs to say admin.cfm?adminID=1(2,3, or 4) What if someone were to change the URL too admin.cfm? I want a spot in my page to say "Select a table from above to Update." It throws an error when I get rid of the ?adminID=1(2,3, or 4)
__________________
Powered by Yahoo! Answers |



Linear Mode
