• Want to help us with this year's BoS Trials?
    Let us know before 30 June. See this thread for details
  • Looking for HSC notes and resources?
    Check out our Notes & Resources page

making webpages with "forms" (1 Viewer)

Spirits

Member
Joined
Mar 11, 2005
Messages
119
Gender
Undisclosed
HSC
N/A
hey does anyone know how to put forms in webpages? for example, where people type in details like name, address, age etc and this information is saved or sent to your email address? Can that be done using html? or will you have to use javascript/ xhtml or something?

Thanks
 

chucknthem

chuck norris
Joined
May 29, 2006
Messages
376
Gender
Male
HSC
2006
You'll need php or another serverside language to send emails.
 

musik_junky

Member
Joined
Aug 27, 2005
Messages
93
Gender
Undisclosed
HSC
2003
but with html, could you somehow save the data the person enters and somehow retrieve it? or would you still need to use PHP?

cheers
 

russs

yeeeee
Joined
Jan 23, 2008
Messages
291
Gender
Male
HSC
2006
Parsing forms on client-side is not practical.

You need a server-side language, be it PHP, ASP, JSP or a straight CGI Application.

Cheers :)
 

chucknthem

chuck norris
Joined
May 29, 2006
Messages
376
Gender
Male
HSC
2006
musik_junky said:
but with html, could you somehow save the data the person enters and somehow retrieve it? or would you still need to use PHP?

cheers
It might work with java(NOT javascript), although it'll still have to be uploaded to a server for you to retrieve, in which case...why not just use a proper server side language?
 

chucknthem

chuck norris
Joined
May 29, 2006
Messages
376
Gender
Male
HSC
2006
Most paid webhosts support php...There are free ones around, but they're not very good. before you start, if you've never done any coding before, install something like XAMPP on your computer and try it out first, then when you're ready to upload your form, get your self a webhost.
 

dumarab

Member
Joined
Aug 16, 2007
Messages
260
Gender
Male
HSC
2008
If you want to use server side use PHP.

However if you want the information to be sent to your email you can simply do this

action="mailto:email" (EDIT: i tried this however the default mail client will be popped up)

OR if that doesn't work (EDIT: therefor this wont work )

you could do a javascript to get all field values shuv in a variable then make that variable in a hidden field and run a mailto.

but im 90% sure the above method will work if you want to send to an email

 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top