RE: How do I get my Current URL
I take it back: http://#CGI.SERVER_NAME##CGI.PATH_INFO##CGI.SCRIPT_NA ME#?#CGI.QUERY_STRING# does work perfectly On 24 Aug 00, at 15:05, Chapman, Katrina wrote: > Don't know of one off the top of my head but you could build it using three > CGI variables. Server_name, Script_name, and query_string > > Just concatenate those in that order and you'll have it. > > --K > > -Original Message- > From: Mark Armendariz [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 24, 2000 8:58 AM > To: Cf-Talk > Subject: How do I get my Current URL > > > I've done this 100's of times, and I've drawn a blank. How do I get the > current URL of the page I'm working on (full URL with parameters) within a > variable? I'm trying to do a "Print This Page" button which will, with an > additional parameter of &Print=1, kill the menus and titles and print the > page. I have all the javascript and other functionality in place, I just > need the link that refers to the currentpage with the added parameter. > > Thanks... > > > > Mark Armendariz > Righteous Design > > www.sorighteous.com > > > > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or > send a message to [EMAIL PROTECTED] with 'unsubscribe' in > the body. > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit >http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or s end a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: How do I get my Current URL
Hmm. Only partly works for me. Only the the #CGI.SERVER_NAME# part returns anything Same problem with #CGI.SCRIPT_NAME# amd #CGI.QUERY_STRING# suggested by somebody else > The following works within a CF page: > > Current URL is http://#CGI.SERVER_NAME##CGI.PATH_INFO# > > Hope this helps > H Larry Juncker > L Senior Cold Fusion Programmer > I Heartland Communications Group > Internet Division > > ] > -Original Message- > From: Mark Armendariz [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 24, 2000 10:58 AM > To: Cf-Talk > Subject: How do I get my Current URL > > > I've done this 100's of times, and I've drawn a blank. How do I get the > current URL of the page I'm working on (full URL with parameters) within a > variable? I'm trying to do a "Print This Page" button which will, with an > additional parameter of &Print=1, kill the menus and titles and print the > page. I have all the javascript and other functionality in place, I just > need the link that refers to the currentpage with the added parameter. > > Thanks... > > > > Mark Armendariz > Righteous Design > > www.sorighteous.com > > > > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or > send a message to [EMAIL PROTECTED] with 'unsubscribe' in > the body. > > > > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or > send a message to [EMAIL PROTECTED] with 'unsubscribe' in > the body. > > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit >http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or s end a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Checkboxes....
Nick, Many many thanks for digging out the thread messages and sending them to me. You are right this is the same question. I don't entirely understand the answer though: I would have a loop within the cfform as I guess is implied above How do the values of the selected checkboxes get added to the list before the submit button is pressed and how is that list passed to the next template - as an ? or are we ignoring the normal checkbox FORM values and using the list instead? Graham > > This has almost certainly been asked before... > Yesterday in fact :-) > The thread is called "picking up form variables on the action page??" -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Checkboxes....
Nick, > Yesterday in fact :-) > The thread is called "picking up form variables on the action page??" Thing is I only rejoined the list today. I can see one tail end of that thread but it is only talking about checking the existance of FORM varaiables. Perhaps the start oif the thread refered to my question but I cannot access those messages (they do not seem to be in the archives yet) My question is to do with passing checkbox FORM variables whose names are dynamically generated in the form. I can't send them as as an array (I guess a form variable cannot be an array ... I experimented and it didn't work) without resorting to WDDX or somesuch so I am sending them as Item_1Item_n My problem is is looping through those in the next template and inserting their values into the database. I am trying to write the ones that get passed to an array and then looping through that to do the inserts but it is clunky and anyway doesn't work at the moment. Graham -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Checkboxes....
Hello, This has almost certainly been asked before... so here we go again: I have a form that displays a set of items each with its own checkbox. The number of choices will vary from day to day. The user selects any number of the items displayed and these choices are to be entered into a database. The items come from the database so result from a query e.g. SELECT Item_Name, Item_ID FROM Items WHERE Active=1 then I do something like this to create a set of checkboxes - I don't know how many checkboxes there are so I have to create the names dynamically: #Item_Name# so the next template receives a set of FORM.Choice_1, FORM.Choice_2 and so on which contain the Item_ID values that I need to insert into the database. This where I am stumped - how do I step through those vales in order to insert them? OR perhaps there is a BETTER WAY. I guess I can't do this: INSERT INTO Choices(Items) Values('Choice_#Count#') I could write the Choice_N values to an array Choices[N] then loop over that but there must be a better way Graham -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.