PDA

View Full Version : javascript


dimx
06-25-2001, 09:39 PM
Hello,

I have a little complicated form that I need help with. Its basically just the javascript part of it.

Ok, I have an image that uses image maps.

In the image it says


FLASH // HTML


so you can either visit the flash or html version of the site.

That I have working. What I want to do is offer a little remember me cookie so the next time the person visits, he/she don't have to choose.


you can take a look at it at markhadjar.com

In the image maps, I am using

onClick="document.form.submit()"

How can I get it to work?


Also, when you click on the link, there is a php script inside the /go/ directory that redirects the user to either flash or html.

So basically its /go/?flash or /go/?html

the /go/index.php file basically redirects the user to what he/she chose. It will also add the cookie if the user wants too.

the markhadjar.com/index file will check to see if there is a cookie, if not, it will show the regular welcome page, if there is a cookie, it will take them directly to the flash or html page.

Can someone give me an idea or help me with the coding..

Thanks!


- Added note:

I need to know what the visitor clicked on too!

So I can store either "flash" or "html" in the cookie!

Abyss Network
06-25-2001, 10:22 PM
Try that CGI Resources website you told me about. cgi.resources.com or whatever. I noticed a script that allows you to do that. Just check the Cookies area! It's about filling out forms and such... but I am sure you can accomadate it to your needs!

dimx
06-26-2001, 12:30 AM
Its not really cgi or php that's the problem. Its more of javascript that is the problem.

I need help with using forms with javascript and how to submit to a form with two different values.

dimx
06-26-2001, 07:05 PM
I did it differently and I got it to work. Takes more coding and an extra step .. hopefully its not to confusing for visitors... :)