Tony,

now I see the problem.  I didn't realize that ID was the transcript date.
The format you've chosen for the date is slightly unfortunate because it
limits your ability to work with it in CF.  If you want to format it for
display, you'll have to do it manually:

<cfset month = mid(id, 1, 2)>
<cfset day = mid(id, 3, 2)>
<cfset year = mid(id, 5, 2)>
<cfset newdate = month & "-" & day & "-" & year>



-----Original Message-----
From: Tony Hicks [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 1 March 2001 9:41 AM
To: CF-Server
Subject: Re: Date Conversion (Help)


your right about it working fine except the that "Trascript for:" is
suffixed by an invalid date?
----- Original Message -----
From: McCluskey, Phil <[EMAIL PROTECTED]>
To: CF-Server <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 4:14 PM
Subject: RE: Date Conversion (Help)


> The only error I can see is that you've got a null value for ID, so unless
> you supply the ID value in the URL, you're requesting
> "http://talkradio.wisernotes.com/.html" in your cfhttp call.  If you
change
> <cfparam name='id' default=''> to <cfparam name="id" default="022101">
then
> it seems to work fine.
>
> -----Original Message-----
> From: Tony Hicks [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 1 March 2001 8:36 AM
> To: CF-Server
> Subject: Date Conversion (Help)
>
>
> I've tried everything I can think of and everything you've all have
thought
> of and have gotten nowhere? Maybe someone can see the error in my coding?
>
> <CFOUTPUT>
>
> <cfparam name='id' default=''>
> <cfparam name='newfilecontent' default=''>
> <cfparam name='showdate' default=''>
> <cfparam name='mode' default='show'>
> <cfparam name='yourname' default=''>
> <cfparam name='youremail' default=''>
> <cfparam name='theirname' default=''>
> <cfparam name='theiremail' default='show'>
> <cfparam name='action' default='show'>
> <cfparam name='blurb' default=''>
> <cfif mode is not "send">
>
> <CFHTTP
>     URL = "http://talkradio.wisernotes.com/#id#.html"
>     resolveurl = 1
>     throwonerror = Yes
> >
> </CFHTTP>
>
> <table border='0' width='100%' cellpadding='0' cellspacing='0'>
>   <tr>
>     <td colspan='3'>
> <!---Problem Area Start--->
>       <font face='courier new' size='2'><center>Send Transcript for
> <b>#id#</b> to a friend<center></font>
> <!---Problem Area End--->
>     </td>
>   </tr>
>   <tr>
>     <td colspan='3'>
> <p>&nbsp;</p>
>       #cfhttp.filecontent#
> <p>&nbsp;</p>
>     </td>
>   </tr>
>   <tr>
>     <td>
>       <font face='courier new' size='2' color='blue'><center><a
> href="http://talkradio.wisernotes.com/#id#.ram">Hear</a> the Real Player
> Audio of this transcript!<center></font>
>     </td>
>     <td>
>       <font face='courier new' size='2' color='red'><center><a
> href="page1.cfm?mode=send&id=#id#">Send</a> this transcript to a
> friend!</b><center></font>
>     </td>
>     <td>
>       <font face='courier new' size='2' color='blue'><center><a
> href="http://talkradio.wisernotes.com/#id#.wma">Hear</a> the Windows Media
> Player Audio of this transcript!<center></font>
>     </td>
>   </tr>
> </table>
> <cfelse>
>
> <table border='0' width='100%' cellpadding='0' cellspacing='0'>
>   <tr>
>     <td colspan='3'>
> <!---Problem Area Start--->
>       <font face='courier new' size='2'><center>Send Transcript for
> <b>#id#</b> to a friend<center></font>
> <!---Problem Area End--->
>     </td>
>   </tr>
>   <tr>
>     <td colspan='3'>
> <cfif action is not "send">
>       <cfform action='page1mails.cfm?id=#id#' method='post'>
>         <input type='hidden' name=#id# value='#id#'
>         <p>&nbsp;</p>
>         <p>Your Name: <cfinput type=text name=yourname><br>
>         Your Email: <cfinput type=text name=youremail required=yes
> message="You must fill in your email address!"><br>
>          <br>
>          Friend's Name: <cfinput type=text name=theirname><br>
>          Friend's Email: <cfinput type=text name=theiremail required=yes
> message="You must fill in Your Friend's email address!">
>          <br>
>          Personal Note: <textarea name=blurb></textarea></P>
>          <input type=submit name=action value=send>
>          <p>&nbsp;</p>
>        </cfform>
> <cfelse>
> <cfinclude template='page1mails.cfm'>
> </cfif>
>     </td>
>   </tr>
>   <tr>
>     <td>
>       <font face='courier new' size='2' color='blue'><center><a
> href="http://talkradio.wisernotes.com/#id#.ram">Hear</a> the Real Player
> Audio of this transcript!<center></font>
>     </td>
>     <td>
>       <font face='courier new' size='2' color='grey'><center>Send this
> transcript to a friend!</b><center></font>
>     </td>
>     <td>
>       <font face='courier new' size='2' color='blue'><center><a
> href="http://talkradio.wisernotes.com/#id#.wma">Hear</a> the Windows Media
> Player Audio of this transcript!<center></font>
>     </td>
>   </tr>
> </table>
>
> </cfif>
>
> </CFOUTPUT>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to