What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Javascript

Pages: (2): « First [ 1 ] 2 » Last »
Javascript
Author: Message:
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
31 / Male / Flag
Joined: Jul 2006
O.P. Javascript
Can someone code me something that pops up a window when someone comes to my site, which says what is you name. and then once they've netered that, it asks for there email adress. and then everything that has been entered can be stored as text on a webpage(that i specify)
11-01-2006 04:22 PM
Profile E-Mail PM Find Quote Report
Mablung
Junior Member
**

Avatar

Posts: 19
32 / Male / –
Joined: Dec 2004
RE: Javascript
code:
<html>
<head>
<script type="text/javascript">
var name=prompt("Please enter your name","")
var email=prompt("Please enter your email","")
if (name!=null && name!="" && email!=null && email!="")
{
document.write("Name: " + name + "<br>Email: " + email)
}
</script>
</head>
<body>
</body>
</html>

http://w3schools.com/js/tryit.asp?filename=tryjs_prompt
[Image: mablungbeta.png]
11-01-2006 05:13 PM
Profile E-Mail PM Web Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
31 / Male / Flag
Joined: Jul 2006
O.P. RE: Javascript
quote:
Originally posted by Mablung
code:
<html>
<head>
<script type="text/javascript">
var name=prompt("Please enter your name","")
var email=prompt("Please enter your email","")
if (name!=null && name!="" && email!=null && email!="")
{
document.write("Name: " + name + "<br>Email: " + email)
}
</script>
</head>
<body>
</body>
</html>

http://w3schools.com/js/tryit.asp?filename=tryjs_prompt
Looks like it will work, but where can i specify where it saves the names and email addresses, or can they be sent to an email?(mine)
11-01-2006 05:17 PM
Profile E-Mail PM Find Quote Report
Mablung
Junior Member
**

Avatar

Posts: 19
32 / Male / –
Joined: Dec 2004
RE: Javascript
I can't do it with JavaScript (AFAIK), you have to use PHP or ASP.
[Image: mablungbeta.png]
11-01-2006 05:22 PM
Profile E-Mail PM Web Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
31 / Male / Flag
Joined: Jul 2006
O.P. RE: Javascript
quote:
Originally posted by Mablung
code:
<html>
<head>
<script type="text/javascript">
var name=prompt("Please enter your name","")
var email=prompt("Please enter your email","")
if (name!=null && name!="" && email!=null && email!="")
{
document.write("Name: " + name + "<br>Email: " + email)
}
</script>
</head>
<body>
</body>
</html>

http://w3schools.com/js/tryit.asp?filename=tryjs_prompt
so what will this actually do?
11-01-2006 05:23 PM
Profile E-Mail PM Find Quote Report
Mablung
Junior Member
**

Avatar

Posts: 19
32 / Male / –
Joined: Dec 2004
RE: Javascript
It will ask you for your name and email and if you enter them they will be written on the page.
[Image: mablungbeta.png]
11-01-2006 05:25 PM
Profile E-Mail PM Web Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
31 / Male / Flag
Joined: Jul 2006
O.P. RE: Javascript
quote:
Originally posted by Mablung
It will ask you for your name and email and if you enter them they will be written on the page.
Will they be saved on the page, or just viewable by the person that entered them?
11-01-2006 05:27 PM
Profile E-Mail PM Find Quote Report
Mablung
Junior Member
**

Avatar

Posts: 19
32 / Male / –
Joined: Dec 2004
RE: Javascript
Just viewable.
[Image: mablungbeta.png]
11-01-2006 05:28 PM
Profile E-Mail PM Web Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
31 / Male / Flag
Joined: Jul 2006
O.P. RE: Javascript
quote:
Originally posted by Mablung
Just viewable.
Is there any way to save it? or do you have to use PHP or ASP.
11-01-2006 05:34 PM
Profile E-Mail PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
29 / Male / Flag
Joined: Apr 2006
Status: Away
RE: Javascript
quote:
Originally posted by Jimbodude
quote:
Originally posted by Mablung
Just viewable.
Is there any way to save it? or do you have to use PHP or ASP.
You'll need PHP or ASP. If you want PHP code i can give it to you.
11-01-2006 05:38 PM
Profile E-Mail PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On