Solved

Running script without reloading form

Posted on 1998-10-29
2
159 Views
Last Modified: 2013-12-25
I have a form with two main sections: one for registration data and one for comments.

I would like the user to be able to submit comments independently of registration. i.e. if a user is having trouble registering he/she can enter a comment, click a Submit Comment button and it will be e-mailed without reloading/refreshing the page, similar to the way that a Reset button resets the form without reloading it. I want
the mailing to be completely transparent to the user.

Is there any way to do this with cgi, or will I have to
use something else like javascript?

Thanks.


Oliver
0
Comment
Question by:oliverp101698
2 Comments
 
LVL 1

Accepted Solution

by:
rajgn earned 50 total points
Comment Utility
You can't e-mail any data without submittting the page as you do with Reset button. This is because you've to use some application from server side to send the e-mail which requires a request from the user in the form of submission. For your task, I can suggest you one way. Put registration part and Comments part in seperate frames(you can set border '0' and can make both the frames look like contained in one page). Then you can control both the parts independently. If a user submit any comment, process it on server side to send the email(without disturbing registration part at all)
0
 

Author Comment

by:oliverp101698
Comment Utility
Thanks rajgn, I had thought of the frames solution myself but
I want to avoid using frames. Anyway, now that I know it can't
be done with a cgi script I can stop rattling my brain about it,
and consider the frames option some more.


Oliver
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now