Jump to content

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/63376-php-enrollment-app/#findComment-315904
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.