Hi i need to create a form in a .html file myteamform.html, then take the data entered into the form and process it in a .php file "roster.php" which takes the data and adds it another.html page team_roster.html. I have my form done, my problem is how do you add the data to the second .html page through the .php file. Right now i have my php writing the data to a file, but i can't read the data from the file unless my team_roster.html page is .php. Basically what i need help with is how to the form data through the .php file and output from another .html file.
Jfunch
0
Newbie Poster
Recommended Answers
Jump to PostYou can alter your .htccess file to allow php within .html files.
Add this to it:
AddType application/x-httpd-php .html .htm
Alternatively, rename the html file to php
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.