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 trial

PHP

Vincent Trapani
Vincent Trapani
2,642 Points

I am building a job application form. What happens to the inputted data after it is submitted?

I understand how to build the form on the front end thanks to the HTML forms course. No issue there. I also understand that the inputted information is sent to the backend/server, but that is all I know. Does it then turn into php code? Even so, what can I do with it?

My company uses either an old fashioned paper application (yawn...) or a pdf app I created. Issue here is both of these methods are slow and inefficient. I host the apps on Google drive (either scanned for paper app or saved pdf), so my desired result is to have an applicant input their information on our website, and then I get a beautiful and sexy application as a result (something manageable and universal like a pdf).

A few relevant details to my question are: most applicants are not super computer savvy ie can't figure out how to download, fill out and send a pdf or use something like google chrome or another browser to open and fill out hence why I am here to learn and find a solution to my issue.

Is there anyone who could impart some wisdom and knowledge on me?

Thank you all,

Vince

1 Answer

Well, I'm not a PHP expert, but I could alert the value inside a text field with JavaScript.

I would do this:

var userInput =  document.getElementById("input-field").value;
alert(userInput);

I recommend learning JavaScript (or PHP if you prefer) if you want to accomplish this task.

It wouldn't be fast to learn it though so take it slowly learning JS (or PHP)... :smile:

Good luck! ~alex