Jump to content

forms


Mike74f

Recommended Posts

my friend needs a simple form with text box for name, 2 check boxes and and drop down menu with a list of classes, like an application but he needs 1 that will save it as an ascii file on the server rather than emailing it. ive seen different types of forms online but they are all email scripts and frankly most of the coding i dont understand can anyone help me?

Link to comment
Share on other sites

Well does your host support PHP ?If so u could use the mail function ,wich doesn't require alot of coding knowledge.Look at w3schools.com => PHP => PHP secure E-mail.

Link to comment
Share on other sites

The Master, read what he says next time. He said "save it as an ascii file on the server rather than emailing it". He doesn't want to use e-mail :)But to save things in a file at your server when people clicks at the submit button, you can use this tutorial

Link to comment
Share on other sites

ASCII is a text format, you could also save a file in UTF-8 or some other formats.If the server supports PHP5, you can use the file_put_contents function to write to the file all at once. If PHP5 is not installed, then you will need to use a combination of fopen, fwrite, and fclose to create the file, write to it, and close it.

Link to comment
Share on other sites

Does UTF-8 and ASCII look different when openend?

Link to comment
Share on other sites

They have different character sets. The normal ASCII has 128 characters, and extended ASCII has 256 characters. UTF-8 and unicode in general is needed to display all of the international characters like the Cyrillic, Asian, Persian etc letters. ASCII does not include those characters.

Link to comment
Share on other sites

Okay! Got it ! Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...