473,511 Members | 16,846 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

muliple form uses

I'm thinking of creating a contact form where the user can either send
their message immediately or preview the message first. So far, I cannot
think of a way to make it happen.

My form mail processing script -- NMS' TFmail -- requires a config file
to be set in the form, normally by a hidden field. I could move that to
the submit "send" button, and have a different config file set in a
submit "preview" button, but there's no way to guarantee that either
button will be pressed.

I could create 2 different scripts, one to send immediately, one to
preview, but there's no way to change the action of form. (Well, I could
use js, but that cannot be relied upon.)

Have I missed something?

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #1
1 1365
Brian wrote:
I'm thinking of creating a contact form where the user can either send
their message immediately or preview the message first. So far, I cannot
think of a way to make it happen.
<input type="submit" name="function" value="Preview">
<input type="submit" name="function" value="Send Message">

Then test the value on the server (and use a sane fall back if neither
control is successful).
My form mail processing script -- NMS' TFmail


You will probably have to modfiy your script, or submit to a different
script which performs redirection based on the above.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 20 '05 #2

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

Similar topics

4
1994
by: Darrel | last post by:
I'm creating a table that contains multiple records pulled out of the database. I'm building the table myself and passing it to the page since the table needs to be fairly customized (ie, a...
11
1268
by: grizduck | last post by:
Hi- I have created a .NET web application that uses 6 aspx pages. As the users goes from one page to the next several variables are set and displayed on future pages. I found out today that if...
1
901
by: Tom | last post by:
Forgive the newbie question but any help would be appreciated. I built a simple form and want to place a datagrid on it that would be based on two tables. I created the sqlconnetion and two...
5
1509
by: serge | last post by:
Is it generally or almost always better to have multiple small SPs and functions to return a result set instead of using a single big 1000+ lines SP? I have one SP for example that is 1000+...
0
1020
by: needin4mation | last post by:
I have a master/detail setup with two gridviews. In the detail table I have a primary key and a related key from the master table. I want to hide both keys. I can do that easily with the...
6
5248
by: ljungers | last post by:
Hi to all and hope someone may have an answer for me. I have a Form named Cust_lukup_Form that has 3 text boxes and a click button that uses a OnClick to call Cust_lukup_Macro that runs an...
19
3272
by: klenwell | last post by:
Another request for comments here. I'd like to accomplish something like the scheme outlined at this page here: http://tinyurl.com/3dtcdr In a nutshell, the form uses javascript to hash...
2
5114
by: Ceebaby via AccessMonster.com | last post by:
Hi Folks I wondered if someone could point me in the right direction before I completely tear my hair out. I have a user selection form where options can be selected for a report. Users now...
1
1752
by: devett | last post by:
I want to create 4 textboxes that will store a lastname from a database. I each of the 4 textboxes to display at first the first 4 lastnames example: Textbox1 will have the bind data for the first...
0
7242
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,...
0
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7510
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...
0
5668
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,...
1
5066
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...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1576
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 ...
0
447
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...

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.