Solved

Running script without reloading form

Posted on 1998-10-29
2
167 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
rajgn earned 50 total points
ID: 1829357
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
ID: 1829358
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

724 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