Bu neyse, varsayalım formu html ile teslim edilir, ilk etapta büyük güvenlik riskleri oluşturabilir, böyle bir şey hakkında gidebilirsiniz:
$handle = fopen('file_name.html', 'r+');
// write to file
fwrite($handle, $_POST['fieldname']);
close($handle);
Note: Sen, kullanıcıların sayfaları oluşturmak için izin çünkü XSS and other security issues dikkate aldım. Kötü adamlar kolayca yararlanabilir.
Resoures:
PHP File Handling Functions strong>
XSS strong>
Son olarak, bir PHP güvenlik kılavuzunu okuyun gerekir:
http://phpsec.org/projects/guide/
Idea:
Just allow them minimal of customization and use a pre-made page where you could insert this user data. Ofcourse as said, you need to sanitize the user-submitted data and consider security issues.