send button

S

Segun

Hi Guys

Can someone pls explain how this works

"when you click on the send button on a form and the page now loads another
page that "thanks you" for filling a form

what is the code that does ?

Thanks
Victor
 
Q

ququqa

Segun said:
Hi Guys

Can someone pls explain how this works

"when you click on the send button on a form and the page now loads another
page that "thanks you" for filling a form

what is the code that does ?

Thanks
Victor

In JavaScript:
<HTML>
<HEAD>
<TITLE>Title</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
function ButtonPressed() {
alert("Thank you!")
}
// -->
</SCRIPT>
</HEAD>
<BODY>
<FORM>
<INPUT TYPE="button" NAME="oneButton" VALUE="Send"
onClick="ButtonPressed()">
</FORM>
</BODY>
</HTML>



You can use more general window.open() method insted of alert().

regards
q
 
T

Toby A Inkster

Segun said:
"when you click on the send button on a form and the page now loads another
page that "thanks you" for filling a form

<form action="thankyou.html" method="GET">
<p><input type="submit"></p>
</form>
 
K

Kris

Segun said:
Can someone pls explain how this works

"when you click on the send button on a form and the page now loads another
page that "thanks you" for filling a form

what is the code that does ?

A server side script evaluates the sent form and responds accordingly by
sending back a 'thank you' page or an error note when you did something
wrong.

Kinds of server side script are legion.

Also the ways to do it.
 

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,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top