I have made an alert on my webpage, where it asks the user for its name.
Is there any way of transferring this name given in an alert, into the normal body of the webpage?
Thanks,
Steve
I have made an alert on my webpage, where it asks the user for its name.
Is there any way of transferring this name given in an alert, into the normal body of the webpage?
Thanks,
Steve
Yeah... Just put this code wherever you need the name to be.
If you know any javascript even simple you know what to edit and what not to edit and such its a pretty simple thing.
Code:<script> var name=prompt("TYPE WHAT WILL BE IN YOUR POPUP HERE",""); function dispname(name) { document.write(""+name+""); } </script>
Oh and one last thing delete the script that makes the other popup window because this one already has the popup window there.
Thanks, works a treat, you don't know if theres any way of including a drop down menu IN THE ALERT do you?
If it's too hard it doesn't matter...i just wondered
Thanks,
Steve
I don't think you can put a drop down menu in a pop-up menu unless you make a pop-up a new window instead of making it a pop-up. You follow?
Yeah, i thought so.
I'm just gonna link the drop-down in the base of the webpage i think...
Thanks anyway,
Steve
I'm back
I've made the site where it asks you this survey thing.....but when they click "Submit" i want to record the data they entered somewhere on my pc, does anybody know how i would i do this?
I'd really appreciate that,
Thanks,
Steve
Is it a form or stuff they enter into a popup box? If it is a pop up box then I can help you and if it is in a form on your page I can help you. So I am pretty sure I can help. There is one thing that you have to do though and that is sign up for this: http://allforms.mailjol.net/main.html I use this for my forms because my webserver does not support any servide scripting but if yours does you can avoid this but I can't help you with that... I can get it all set up and ready to work you just need to get the form processor to work.
Yeah, it's a form.
somebody told me to put <FORM="mailto: email@domain"> or something like that, but i tried it and they didn't get delivered to my inbox.
Are you on MSN?
Thanks,
Steve.
Ok let me first explain why you are having trouble. If you were to use that code it would look like this instead of that
Now the problem with that is that it opens up the users default email, like outlook and so forth. That way if the user does not want to send the email they do not have to send it. Here is an example of one code I have on my page DO NOT USE THIS BECAUSE THE RESULTS WILL BE SENT TO ME. I put this in the heading and the second one in the body of the page. The script in the heading also validates to see if the form is filled out correctly.Code:<form action="mailto:yourname@yourdomain.com" method="post">
Code:<script> <!-- function validate() { if ((document.feedback.email.value=="")|| (document.feedback.suggestion.value=="")) { alert ("Please fill out every field. Thank you.") return false ; } return true ; } //--> </script>Now that is what I have. Can I get a copy of the code for your form that you are using. The entire form. Also you have to sign up for that website I gave you. That is how I send all my forms.Code:<center> <form action="http://free.allforms.mailjol.net/u/102067.php" method="post" name="feedback" onsubmit="return validate()"> Enter Your Name<br> <input type="text" size="20" name="name"> <br> Enter Your E-Mail (*required)<br> <input type="text" size="20" name="email"> <br> What you want up here: (*required) <br> <textarea name="suggestion" rows="3" cols="25"></textarea> <br> <input type="submit" name="B1" value="Submit"> </form> </center>
Bookmarks