Action before clicking a link

L

lg

I have the following code (scaled down from complete code):


[snip]
print "Press link below to go to next level";
print '<form action="http://thisandthat.com" method="post">';
print "</form>";
[snip]

When user clicks the link he then goes to the page link point to.
I would like to save info that the user has clicked the link.
How do I do that?
 
J

Jürgen Exner

lg said:
I have the following code (scaled down from complete code): [snip]
print "Press link below to go to next level";
print '<form action="http://thisandthat.com" method="post">';
print "</form>";
[snip]

When user clicks the link he then goes to the page link point to.
I would like to save info that the user has clicked the link.
How do I do that?

Yor print() statements look correct to me. Beside that is there anything
else related to Perl that you like to discuss?

jue
 
B

Brian Wakem

lg said:
I have the following code (scaled down from complete code):


[snip]
print "Press link below to go to next level";
print '<form action="http://thisandthat.com" method="post">';
print "</form>";
[snip]

When user clicks the link he then goes to the page link point to.
I would like to save info that the user has clicked the link.
How do I do that?


Point to a script which redirects after logging.
 
X

Xicheng Jia

I have the following code (scaled down from complete code):

[snip]
print "Press link below to go to next level";
print '<form action="http://thisandthat.com" method="post">';
print "</form>";
[snip]

When user clicks the link he then goes to the page link point to.
I would like to save info that the user has clicked the link.
How do I do that?

my question:
1) There is no link, just an empty form
2) Can you use 'GET' instead of 'POST'

You might also want to check Javascript's onChange handler if you dont
like a 'submit' button

Regards,
Xicheng
 
L

lg

Brian Wakem said:
lg said:
I have the following code (scaled down from complete code):


[snip]
print "Press link below to go to next level";
print '<form action="http://thisandthat.com" method="post">';
print "</form>";
[snip]

When user clicks the link he then goes to the page link point to.
I would like to save info that the user has clicked the link.
How do I do that?


Point to a script which redirects after logging.

Thank for the tip.
How do I do the redirecting?
 
B

Brian Wakem

lg said:
Brian Wakem said:
lg said:
I have the following code (scaled down from complete code):


[snip]
print "Press link below to go to next level";
print '<form action="http://thisandthat.com" method="post">';
print "</form>";
[snip]

When user clicks the link he then goes to the page link point to.
I would like to save info that the user has clicked the link.
How do I do that?


Point to a script which redirects after logging.

Thank for the tip.
How do I do the redirecting?


http://search.cpan.org/~lds/CGI.pm-3.29/CGI.pm#GENERATING_A_REDIRECTION_HEADER
 
L

lg

Brian Wakem said:
lg said:
Brian Wakem said:
lg wrote:

I have the following code (scaled down from complete code):


[snip]
print "Press link below to go to next level";
print '<form action="http://thisandthat.com" method="post">';
print "</form>";
[snip]

When user clicks the link he then goes to the page link point to.
I would like to save info that the user has clicked the link.
How do I do that?


Point to a script which redirects after logging.

Thank for the tip.
How do I do the redirecting?


http://search.cpan.org/~lds/CGI.pm-3.29/CGI.pm#GENERATING_A_REDIRECTION_HEADER

Thank you. I got it working.
 

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,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top