Solved

Running script without reloading form

Posted on 1998-10-29
2
165 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
change home folder path 4 56
Renaming multiple file extensions using Powershell 4 51
Auto-indent certain lines in Notepad++ 10 112
Powershell File Sort 8 41
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 …
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
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…

861 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