473,667 Members | 2,548 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

php sticky forms

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 is mailed to an admin, or
any fields marked as required are indicated and the user must fill out that
information. This should retain the previously entered correct data and the
user need not press the back button.
Thanks.
Dave.
Jul 17 '05 #1
5 8737
I noticed that Message-ID: <tg************ *@fe2.columbus. rr.com> from
dave contained the following:
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 is mailed to an admin, or
any fields marked as required are indicated and the user must fill out that
information. This should retain the previously entered correct data and the
user need not press the back button.


I have one that does that.

http://www.ckdog.co.uk/php/form.zip

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #2
*** dave wrote/escribió (Wed, 03 Mar 2004 01:10:49 GMT):
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 is mailed to an admin, or
any fields marked as required are indicated and the user must fill out that
information. This should retain the previously entered correct data and the
user need not press the back button.


Just loop through the very same page until form is correctly filled:
if form is ok
redirect to thank page
else
print form

Form could look this way:

<form action="<?=$_SE RVER['PHP_SELF']?>" method="post">
<input type="text" name="foo" value="<?=addsl ashes($_POST['foo'])?>">
</form>

--
--
-- Álvaro G. Vicario - Burgos, Spain
--
Jul 17 '05 #3
Alvaro G Vicario wrote:
(...)
Form could look this way:

<form action="<?=$_SE RVER['PHP_SELF']?>" method="post">
<input type="text" name="foo" value="<?=addsl ashes($_POST['foo'])?>">
</form>


Shouldn't it be <?=strip_tags($ _POST['foo'])?>?

Or, better:
<?=htmlentities ( stripslashes($_ POST['foo']) )?>

addslashes() is only if You're passing the form content to a database
and can be rather annoying otherwise ;-)

Rudi
Jul 17 '05 #4
Hello,
Thanks to everyone who offered suggestions, i got my sticky form.
Dave.
Jul 17 '05 #5
*** Rudolf Horbas wrote/escribió (Wed, 03 Mar 2004 19:07:09 +0100):
Shouldn't it be <?=strip_tags($ _POST['foo'])?>?
What's wrong with using < and > inside quotes:

<input type="text" value="Hello <World>!">
<?=htmlentities ( stripslashes($_ POST['foo']) )?>

addslashes() is only if You're passing the form content to a database
and can be rather annoying otherwise ;-)


You're right, I made a big typo :)
--
--
-- Álvaro G. Vicario - Burgos, Spain
--
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2232
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 whose recordsources draw data from the same table. I use a tabbed interface: frmMain has 4 tabs. On each tab there is a form and at least one subform (datasheet). So we're talking at least 5 subform datasheets, on different tabs, all open at...
5
1353
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 user to select from menu options. Some of the menus allow the user, via an options form, to select parameters for the display of reports. Those parameters will include things like the date range,
4
2995
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 with data from the database, allow the user to update it, and then display the form again with POST data. I can get the data out of the database and get the user updates back into the database, but how do I get the filled-out form back to the user...
2
2006
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 (http://tools4php.com/form-wizard/), lacks only the sticky field functionality. If useability is a priority, this functionality is essential for long forms with several fields to validate. I'm partial to this app because I've already created the rather...
3
4570
by: cheapterp | last post by:
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:...
9
2779
by: student4lifer | last post by:
Hello, could someone show me how to make sticky form with dynamically generated form element? for example, if one likes to make the dynamically generated check box (and its name) 'sticky' that retains the value of the previously submitted value. How would one do that? TIA. I was thinking something along this line but not sure it's the right way to accomplish this task
12
5476
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 condition OnChange(), <script language="JavaScript"> function autoSubmit() { var formObject = document.forms; formObject.submit(); }
0
8457
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8788
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8563
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8646
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7390
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6203
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4200
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2776
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1778
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.