Question:
I need HTML/Javascript code?
anonymous
2009-12-18 18:05:56 UTC
Okay, so I'm making a website, but I can't find any codes to:

a) Create a "log in" attribute- i.e. Username/Password

b) Create a feature allowing users to purchase items online- i.e. Quantity, Address, Credit Card, etc etc...

c) Create a link that will mail questions directly to me- i.e. User clicks link, page pops up with a form, user types in question, clicks "Send", I get email with their question. I've tried using HTML "mailto" but it does nothing, at least in the browser I use, Google Chrome.

Answers to any of these problems are appreciated, thanks
Three answers:
?
2009-12-18 20:08:21 UTC
I actually go with Michelle. There are plenty of examples and tutorials available.



ad 2)

Quantity is a select box, Address, Credit Card, etc are text fields

you need to capture them using a secure server (https) to protect the data.

This would be some service to purchase from your Website host.



ad 1)

Here some sample ideas for a password screen.

dump the code at



http://pastebin.com/f39f48d83



into an html file and run it. You then can decide,

whether this is of any use for you:



ad 3)

Most of the code at



http://pastebin.com/f5533bc17



I actually got from the online library of the Internet Host. In this case ASP is used

and Objects which are available on the Internet Host: Please note: The code was

used. You need to have the CDO objects on your server/website. I also would

suggest that the Hosting service would provide you with details about sending

messages. In order to understand the code you need to be able to comprehend

some ASP. You have to create an html form as well.





I hope this helps
?
2009-12-19 02:19:10 UTC
In order to create these features you will need to do some server side scripting. HTML and javascript are not capable of doing these things, because they run only on the client side.



Popular server side scripting languages are PHP, ASP, and Java.



PHP is easiest in my opinion, as well as free, so I would recommend learning it.



To create the log in and keep track of orders you are going to need a database for storing the Username and an encrypted version of their password. MySql is my recommendation because it comes packaged with php in many situations.



if you are wanting to set up this type of environment you will need to download and install wamp (if you are using windows) You can download it here:

http://www.wampserver.com/en/



Edit: I want to point out that you can indeed, and must, create the user interface with HTML and Javascript, but the form will need to post the data back to your server, and then your server will need to do the appropriate things with that data. this is where server side scripting comes in. Good luck.
michellelvswayne
2009-12-19 02:11:16 UTC
http://www.w3schools.com/HTML/html_links.asp This website should be all you need to create a website of your own! As you can see on the left side of the webpage, there is a column full of all you need- Good luck!


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...