Click to See Complete Forum and Search --> : REquest Form HELP


CLUSTER
11-08-2003, 01:01 PM
Guys, I need a simple form built. I am trying to learn Java a bit, and even after reading free scripts and trying to figure them out I still have a problem and cant get jack **** to work.

I would like a form create using Java (trying to stay away from PHP. Something like Java would be best as servers are always compliant with this type of form) ?

Anyways, I need a few field for people to enter information into and then when they hit SUBMIT, all the information is gathered and it gets directed to an email. At the same time, i would like it that once someone hits the submit button it directs them to a page saying 'thank you for your submission, you are now being redirected"..... and have it direct someone back to the main page of the website.

I would need the following fields on the form:



Your name: _______
# of guest: _______

SUBMIT




Not sure, im guessing some of you could whip something like this up in an instant. However myself, im just getting really frustrated.

If someone could whip this up for me, and paste the exact code I would need to input into Dreamweaver it would be apprectiated.


Cheers.

96turnerri
11-08-2003, 06:27 PM
<SCRIPT LANGUAGE="JavaScript">
function goToURL() { window.location = "thankyou.htm"; }
</script>

<form action="mailto:YOUREMAIL">
Your Name<input name="name" type="textbox" size="20"><br>
# of Guest<input name="guest" type="textbox" size="10">

<input type="submit" value="Submit" name="Submit" onClick="goToURL()"><input type="reset" value="Clear" name="Clear">
</form>

Theres you form that then takes you to, thankyou.htm so you need to make that page and include in that page a redirect script such as

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
redirTime = "15000";
redirURL = "index.htm";
function redirTimer() { self.setTimeout("self.location.href = redirURL;",redirTime); }
</script>
</head>

<BODY onLoad="redirTimer()">

this will redirect you to homepage in 25 seconds make sure you wirte it on page otherwise user may close it

CLUSTER
11-08-2003, 08:47 PM
Thanks for your help, however the request form still does not function properly.

This is the order in which things unfold when trying to submit the form:

1 - entered information into the proper text boxes.
2 - click submit
3 - message pops up saying: This form is being submitted using e-mail. Submitting this form will reveal your email address to the recipient, and will send the form data without encrypting it for provacy.

You may continue or cancel this submission.

OK CANCEL


(now, the problem with this is it's dependant on a third party program such as outlook express to send this information. Even then it doesnt function properly..... once I hit OK it opens my outlook express and it doesnt even show the information i entered into the text box fields on the form.....

4 - it then directs to the thankyou.htm page i made, which then does in fact redirect to where i want it to.. (great!)


Here is the code i have for the form in case you were going to ask:

<html>
<head>
<body bgcolor="#00000" text="#000000">
<title>CLUB PHOENIX - Guestlist Request Form</title>
<SCRIPT LANGUAGE="JavaScript">
function goToURL() { window.location = "thankyou.htm"; }
</script>

<form action="mailto:st4_cluster@hotmail.com">
<font color="#FFFFFF" size="5"></font><b><font color="#FFFFFF"><br>
<font size="2">GUESTLIST REQUEST FORM</font></font></b><font color="#FFFFFF"><br>
<br>
Your Name: </font>
<input name="name" type="textbox" size="20"><br>
<font color="#FFFFFF"># of Guests :</font>
<input name="guest" type="textbox" size="10">
<br>
<br>
<font color="#FFFFFF">Dress to impress.<br>
Must arrive at the VIP door by 11:00pm .<br>
If you dont follow these simple guidelines<br>
<b>YOU WILL BE SHOT AT THE DOOR!</b><br>
Thank you, come again...<br>
</font><br>
<input type="submit" value="Submit" name="Submit" onClick="goToURL()"><input type="reset" value="Clear" name="Clear">
</form>
</body>
</html>



you will see what i mean, go ahead and test that....

96turnerri
11-09-2003, 06:53 AM
firstly and most importantly guestlist???! what it for dont suppose i can earn myself a place on it :D

secondly it shouldnt open outlook express just come up with sending message bit, i may be able to get rid of the first bit saying not encrypted, does it do this or does it actually open outlook express, i will open the default mail client on the users computer which may be outlook, outlook express, hotmail, yahoo etc

lets get this to work b4 moving on

CLUSTER
11-09-2003, 02:36 PM
I have tried this on 3 different pc's, and each of the pc's had outlook express on them, and it did in fact come up with the exact same warning etc on all 3 pc's then opens up OE....

Try the coding I provided above and you will see for yourself, publish it in dreamweaver, then give it a try.

Also, i'm looking to have coding in there that shows once there is a certain amount of people on guestlist already it will give you a message saying "sorry but guestlist is full" , or, direct you to a html page I create that says that.
not sure if thats asking for too much, but seems like a good project for those who want to test their java skills.

Cheers.

96turnerri
11-09-2003, 04:13 PM
yeah thats whaat i meant the warnings still come up but outlook express shouldnt open fully if you know what i mean just the sending bit

96turnerri
11-09-2003, 04:18 PM
as ur trying to saty away from ssl, i dont think its possible to do that last request about when the guest list gets full :cool:

CLUSTER
11-09-2003, 04:43 PM
Originally posted by 96turnerri
yeah thats whaat i meant the warnings still come up but outlook express shouldnt open fully if you know what i mean just the sending bit

Have you tried this for yourself yet? you'll see what i mean, it will open up hotmail or outlook express when you hit submit.
something wrong with the code :(

96turnerri
11-09-2003, 05:21 PM
im afraid thats the only way it can be done without using ssl

96turnerri
11-09-2003, 05:22 PM
yes i have tried it for myself i wrote the code :p

CLUSTER
11-09-2003, 05:59 PM
Originally posted by 96turnerri
im afraid thats the only way it can be done without using ssl

Ok, would I have to check any specs on the server to see if ssl code will be complient?

Cheers.

96turnerri
11-09-2003, 06:09 PM
yeah you need to find out whether php, asp, jsp or something like that is installed on the server, otherwise the form wont work

CLUSTER
11-11-2003, 05:06 PM
I went ahead with PHP.
Thanks for the help with the Java, thought maybe it was pheasable with that protocol.

Cheers.

96turnerri
11-11-2003, 05:36 PM
no afraid its not javascript has many functions/capability but not for that