Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

What happens with files I PUT on server?

New Here ,
Jul 02, 2008 Jul 02, 2008
I am using the CF Developer app to test a new website I'm designing and have PUT files on CF/server and now need to uninstall program. First, is it necessary or a good idea to GET or delete files I've PUT on CF/server before I uninstall CF, for privacy, etc..? Second, how do I accomplish this?

Also, where can I find CF code to process a form on my website that includes check boxes, radio buttons, and a comment/question field? Would also be nice to validate a check box was checked and selection made from radio buttons. Keep in mind I'm someone with very little coding experience.
Thanks in advance.
206
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 03, 2008 Jul 03, 2008
Which files are you referring to that you need/want to delete? html/cfm files? I would suppose you may want to delete them if several other people are sharing the same server and you dont want them looking at your files.

The form processing really depends on what you want to do. Are you planning on inserting that information into a database? Just displaying the information on a page? Emailing the information?

The cfforms are not much different from an html form, with the exception you add "cf" in front of the form tags and it has some built in validation.

Heres an example of a basic form with a checkbox.

<cfform name="myform" method="post">
<cfinput type="checkbox" name="mycheckbox" value="yes">
<cfinput type="submit" name="submit_form" value="submit me">
</cfform>

Once you submit the form, it will resend the form variables back to itself - so if you needed to display the form variable - you could do something like this:

<cfif isDefined('form.mycheckbox')>
<cfoutput>
the check box was selected with value: #form.mycheckbox#
</cfoutput>
</cfif>
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 03, 2008 Jul 03, 2008
LATEST
As far as deleting files I'm referring to the cfm files I PUT on the server to test them. I was more concerned what happens to information once you uninstall CF??

Regarding the form info initially all I want to do is display a message on a page once form is submitted and then send results to my email. As far as validation I used DW8 to validate text fields but wasn't sure if I could validate check boxes and radio buttons with DW though it looked like you could if you knew how.
I have one check box in form I need feedback on and a radio button group I'd like results from.
I went through the trouble of designing form with DW8 but didn't code anything dynamically. Do you think I should start over or is it easy to just ad CF code to get what I need (form results)?

Thanks in advance.
Newbie
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources