Technology, Web & Business Forum

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++


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-18-2008
Junior Member
 
Join Date: Apr 2008
Posts: 6
Default ColdFusion, why do I keep getting an error because there is a undefined URL...

...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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 10:02 AM.