473,406 Members | 2,707 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,406 software developers and data experts.

Form Processing

Hi,

I hope someone might be able to set me straight on how to handle the
situation described below.

I have a page that has an email field for user input and 2 radio buttons
(subscribe + unsubscribe) for signing up to a mailing list. What I would
like to have happen is the following:

The user enters an email and presses the submit button.

At this point a new window opens (I would like to be able to specify size,
etc rather than use _blank) to process the submission and return a response
(succeeded, already subscribed, etc). The user would then close the window
by clicking on a 'close' link in the new window.

I would also like the form data cleared, so the user doesn't think the
submission didn't work, despite seeing the confirmation window.

I am using php to process my results. I basically have the above working
except that I can't seem to clear the form. Anything I have tried results in
blank results being sent to my form processing program. Any tips?

Thanks,
Scott
Jul 20 '05 #1
2 2615
"Scott" wrote on 13/11/2003:
Hi,

I hope someone might be able to set me straight on how to handle the
situation described below.

I have a page that has an email field for user input and 2 radio buttons (subscribe + unsubscribe) for signing up to a mailing list. What I would like to have happen is the following:

The user enters an email and presses the submit button.

At this point a new window opens (I would like to be able to specify size, etc rather than use _blank) to process the submission and return a response (succeeded, already subscribed, etc). The user would then close the window by clicking on a 'close' link in the new window.

I would also like the form data cleared, so the user doesn't think the submission didn't work, despite seeing the confirmation window.

I am using php to process my results. I basically have the above working except that I can't seem to clear the form. Anything I have tried results in blank results being sent to my form processing program. Any tips?


Blank results should only be sent if you cleared the form before it
was submitted. Using the onload event, wait until the confirmation
window (CW) has finished loading, then clear the form. As you're
using JavaScript to open the CW, the opener (window.opener) property
should be set to the window object of the page that contains your
form. It would probably look something like:

<BODY onload="window.opener.document.subscriptionForm.em ail.value =
'';">

You can't clear radio buttons, obviously.

Mike

--
Michael Winter
M.Winter@[no-spam]blueyonder.co.uk (remove [no-spam] to reply)
Jul 20 '05 #2
Thanks for the info. Exactly what I needed!!!!

Scott
On 11/13/03 6:41 PM, in article
vE*********************@news-text.cableinet.net, "Michael Winter"
<M.Winter@[no-spam]blueyonder.co.uk> wrote:
"Scott" wrote on 13/11/2003:
Hi,

I hope someone might be able to set me straight on how to handle the
situation described below.

I have a page that has an email field for user input and 2 radio

buttons
(subscribe + unsubscribe) for signing up to a mailing list. What I

would
like to have happen is the following:

The user enters an email and presses the submit button.

At this point a new window opens (I would like to be able to specify

size,
etc rather than use _blank) to process the submission and return a

response
(succeeded, already subscribed, etc). The user would then close the

window
by clicking on a 'close' link in the new window.

I would also like the form data cleared, so the user doesn't think

the
submission didn't work, despite seeing the confirmation window.

I am using php to process my results. I basically have the above

working
except that I can't seem to clear the form. Anything I have tried

results in
blank results being sent to my form processing program. Any tips?


Blank results should only be sent if you cleared the form before it
was submitted. Using the onload event, wait until the confirmation
window (CW) has finished loading, then clear the form. As you're
using JavaScript to open the CW, the opener (window.opener) property
should be set to the window object of the page that contains your
form. It would probably look something like:

<BODY onload="window.opener.document.subscriptionForm.em ail.value =
'';">

You can't clear radio buttons, obviously.

Mike


Jul 20 '05 #3

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

Similar topics

1
by: Danny Anderson | last post by:
Hola, PHP folk! I have a php page that contains a self-processing form. The form holds search results. The search terms originally came from the previous page, but the user can repeatedly...
8
by: dmcconkey | last post by:
Hi folks, I have a client with four websites. Each site has a contact form that is identical. They all have "required" fields validated through a JavaScript onSubmit() function. Upon validation,...
1
by: David Bradbury | last post by:
Hi On my form, as soon as the user clicks my submit button a message pops up saying "Form processing" as the form submits. This is fine as long as the user only clicks the submit button once....
8
by: Raed Sawalha | last post by:
I have form with progress bar ,when application begin processing and progress bar moving if I minimized the form and try to restore it ,it is not showing until the processing completed ,how can I...
8
by: Brian Fulford | last post by:
This is my first shot at a Winforms application in dot net. This application is mainly going to run unattended but is using a form to display current activity of the background processing. In VB6,...
12
by: Ger | last post by:
My dialogue form (sometimes partly, sometimes as a whole) remains visible during a fairly long processing job. The dialogue asks the user to enter some data for the job to follow, and after OK,...
15
by: Jack | last post by:
Hi, I have a asp form where one element is a list box which lists four years starting from 2004. This list is drawn from a database table which has YearID and Year as two fields as shown below:...
2
by: AJang | last post by:
My windows form "Form1" has one Button "button1" and one TextBox "textBox1". When I click button1, it do a job for each file in a directory. The job include some platform invoke call. Before...
2
by: rdemyan via AccessMonster.com | last post by:
My application has a lot of complicated SQL statements, calculations, processing that takes time. I've created a custom form to act like a messagebox. It has 10 small rectangles on it that change...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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
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...

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.