action=""

J

Jeff Thies

I'm writing a little password checking module to insert in sundry
scripts. If the password fails it writes a form and you get to play again,

I'd like that form to submit to itself.

Can I do this? :

<form action="" ...

or is there a better way?

Jeff
 
K

Kris

Jeff Thies said:
I'm writing a little password checking module to insert in sundry
scripts. If the password fails it writes a form and you get to play again,

I'd like that form to submit to itself.

Can I do this? :

<form action="" ...

or is there a better way?

I usually build up my site structure like this:

/directory/directory/directory/index.html

A self-referring form would have something like this onboard:

action="./"


Of course, if you don't have this setup, you can simply refer to the
filename of the page containing the form. It is not as if you don't know
what it is, right?

loginpage.html

action="loginpage.html"
 
J

Jeff Thies

Hi Kris,

I usually build up my site structure like this:

/directory/directory/directory/index.html

A self-referring form would have something like this onboard:

action="./"

That's a directory reference, isn't it?
Of course, if you don't have this setup, you can simply refer to the
filename of the page containing the form. It is not as if you don't know
what it is, right?

No, I don't.

Lets say I'm logging in to this:

some_domain.com/cgi-bin/view_orders.pl?item=hemulator

If the passcheck fails I want to return to that same exact page.

I'd rather not have the server extract that as if I use this on a
windows box, windows servers can be funky with enviornment variables.

action="" works for me in IE6, Opera7 and NS7.1 windows. Seems funky
though... and I didn't know if that fails somewhere.

right now all I have to do is add this to the top of the script:

use PASS_CHECK;
&PASS_CHECK::passCheck();

Jeff
 
K

Kris

Of course, if you don't have this setup, you can simply refer to the
filename of the page containing the form. It is not as if you don't know
what it is, right?

No, I don't.

Lets say I'm logging in to this:

some_domain.com/cgi-bin/view_orders.pl?item=hemulator[/QUOTE]

Then,

action="view_orders.pl?item=hemulator"
 

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
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top