amazon3d Posted August 5, 2007 Share Posted August 5, 2007 Hello everyone I'm still new to php though I have been trying to learn it as quickly as I can. I'm wondering how I would put to gather a php or html based application, it will need to collect ~4-5 pages of info then submit it via email. Does anyone know how I would go about doing this? Quote Link to comment https://forums.phpfreaks.com/topic/63376-php-enrollment-app/ Share on other sites More sharing options...
Fadion Posted August 5, 2007 Share Posted August 5, 2007 Hmm u need to know some stuff dude, as passing variables between pages with post, get or sessions and use the mail() function of php. Id suggest u to learn the basics and in just a few days we'll be able to start thinking of a logic for what u want. Quote Link to comment https://forums.phpfreaks.com/topic/63376-php-enrollment-app/#findComment-315903 Share on other sites More sharing options...
dbo Posted August 5, 2007 Share Posted August 5, 2007 HTML is how the page looks. PHP is how you process data and create dynamic content. That being said. You'll design your HTML pages with appropriate fields, when the user clicks next the data should be processed on the same page and stored in session variables or some similar method... if validation fails redisplay the page and make users fix errors. Go to the next page and repeat... when the final submit is pressed and validated you'll aggregate all of the session variables to create a message string and then use the mail function to send an email. This is of course the high level logic. I'd suggest you write out a list of requirements basically saying what the script should do, mock up screenshots in photoshop or something similar of how you want them to look. Build them out as raw HTML, implement the appropriate validation in PHP, test that everything works and finally figure out how to send an email. Coming up with a solid repeatable process is a good way to start writing good/well documented and thought out code. It also helps to break a large project (for you) down into smaller more manageable pieces. Quote Link to comment https://forums.phpfreaks.com/topic/63376-php-enrollment-app/#findComment-315904 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.