Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDaron Robinson
9,055 PointsGet Simple Contact Form to Work
Hello I really like the simplicity of this form. See link here http://tympanus.net/Development/FullscreenForm/
How can i actually get the form to send the results. The example is not a full working example it seems.
Daron Robinson
9,055 PointsTed Sumner the script files are in the link. There are multiple js. and css files. if you use google developer tools you could view from the demo if you dont want to download. I dont know if i need to edit or add php or even more javascript. the readme.text file doesn't help.
I'm just trying to figure out if creating a form like this that can actually send the data is possible.
2 Answers
Kevin Korte
28,149 PointsIt looks like at the end, the javascript included bundles up all of the form inputs and puts them into a form element on the last page for review. Basically you'd just have to add an action and method to the form element, and than the submit button will send the form off to that location, which is where you'd use a back end language to do something with the data.
You'll just have to adjust the html to create the form elements you want. Certainly possible to make the form work. Hope that helps.
Just a note, that there is a note in the article about it is only supported by later browsers, so make sure it'll work for your user base.
Ted Sumner
Courses Plus Student 17,967 PointsJavaScript is my weakest language. You should not need PHP to make the form work in itself. You may need PHP to so some work with the data once it is submitted.
Ted Sumner
Courses Plus Student 17,967 PointsTed Sumner
Courses Plus Student 17,967 PointsPlease post the code you are working with.