Web form's reply on same page as form.

J

John

I have a HTML <form> on a page with
"action=www.fred999.com/cgi/hydrogen.pl".

When the form is submitted the answer appears on a new page.

Is there any way that the reply from the perl can *continue* on the same
page as the <form>?

Regards
John
 
G

Gunnar Hjalmarsson

John said:
I have a HTML <form> on a page with
"action=www.fred999.com/cgi/hydrogen.pl".

When the form is submitted the answer appears on a new page.

Is there any way that the reply from the perl can *continue* on the same
page as the <form>?

One way to do that is to let hydrogen.pl generate the form instead of
having it on a static HTML page.

print form();

if ( $ENV{REQUEST_METHOD} eq 'POST' ) {
print result();
}
 
I

Ian Wilson

John said:
I have a HTML <form> on a page with
"action=www.fred999.com/cgi/hydrogen.pl".

When the form is submitted the answer appears on a new page.

Is there any way that the reply from the perl can *continue* on the same
page as the <form>?

This is really an HTTP / HTML question, not a Perl question.

Googling for AJAX might help, if you want to see the results of form
submission without the browser fetching a whole web-page.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top