473,322 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

How To Create Sticky Forms

Hey Guys,

I have just started working on ColdFusion, so I am relatively new to it than most of you may be. I am trying to create 'Sticky Stay-Filled' forms so that when the form is submitted, the details entered on the form show up on the page following the submit. Just FYI, the form is submitted to itself. I have done this in PHP almost a hundred times but have never done it in CF.

Here's a link to what I am looking for:
http://www.webdeveloperny.com/form.php

Any help is really appreciated!

Thanks!
Jun 27 '08 #1

✓ answered by acoder

What you need to do is take the inputs from the form, e.g. if POSTed, form.field, otherwise url.field (for GET), then for text input fields, set the value using Coldfusion to output it, e.g.
Expand|Select|Wrap|Line Numbers
  1. <input type="text" name="field" value="<cfoutput>#form.field#</cfoutput>">
For select elements, set the selected option if the values match. For radio/checkboxes, set the checked property for matching values.

3 4556
acoder
16,027 Expert Mod 8TB
What you need to do is take the inputs from the form, e.g. if POSTed, form.field, otherwise url.field (for GET), then for text input fields, set the value using Coldfusion to output it, e.g.
Expand|Select|Wrap|Line Numbers
  1. <input type="text" name="field" value="<cfoutput>#form.field#</cfoutput>">
For select elements, set the selected option if the values match. For radio/checkboxes, set the checked property for matching values.
Jun 27 '08 #2
What you need to do is take the inputs from the form, e.g. if POSTed, form.field, otherwise url.field (for GET), then for text input fields, set the value using Coldfusion to output it, e.g.
Expand|Select|Wrap|Line Numbers
  1. <input type="text" name="field" value="<cfoutput>#form.field#</cfoutput>">
For select elements, set the selected option if the values match. For radio/checkboxes, set the checked property for matching values.

Thanks for your reply, saved me some time googling for an answer!
Aug 15 '08 #3
acoder
16,027 Expert Mod 8TB
You're welcome. Glad it helped even if after some time ;)
Aug 15 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: dave | last post by:
Hello, Ok, i'm missing something probably very simple. I want to have some forms that are sticky, a user fills one out then is given a personalized thank you message on the next page and the Email...
4
by: deko | last post by:
RE: "Object Invalid or No Longer Set" errors I've had an angelic visitation and the revelation is that my problem, in essence, is due to the fact that I have multiple forms open at the same time...
5
by: mabond | last post by:
Hi all This question is one of "theory" rather than a search for the specifics of a solution. I need some pointers as to how to proceed with my project. Here goes. My application allows the...
2
by: Melson | last post by:
Hi Does anyone know how to create a similar sticky note UI with listbox and I can select the item in the listbox. Thanks. Regards Melson
4
by: dac | last post by:
I am quietly going insane on this project. I've never worked on a project like this one before. All my previous sticky forms were for data entry, not editing. I don't know how to display the form...
2
by: sojo | last post by:
As a web designer with only very rudimentary php skills, I've looked all over for a user friendly php form processor that includes sticky fields. The best match for my needs, php form wizard...
0
by: dudeja.rajat | last post by:
On Mon, Aug 25, 2008 at 12:57 PM, <dudeja.rajat@gmail.comwrote: Ok...now I found the way to do that. But I'm stuck further. my code is as below: main module ********************** myRoot...
12
by: manuitpro | last post by:
I am trying to make drop down stick in my php. Below is my code, can some one help me to make it sticky. I am tried and lost. I have two dropdown in the form, each pulls data from mysql with...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.