The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
First form: validation, PHP conversion and file privacy - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: First form: validation, PHP conversion and file privacy (/showthread.php?tid=21304) |
First form: validation, PHP conversion and file privacy - Mortom - Feb 11th, 2017 Hi all, I am new to Form Tools (v2.2.6) and I am setting up a form to include in a Wordpress page. Some questions have come up, and I would like to ask if you could give me a hand on this: 1- I can't get rsv.js validation to work. My form tag looks like this: Code: <form action="http://[mywebsite].pt/ftools/process.php" enctype="multipart/form-data" method="post" onsubmit="return rsv.validate(this, rules)"> Code: <script type="text/javascript" src="http://www.[mywebsite].pt/ftools/global/scripts/rsv.js"></script> Code: <td width="200px"><label>Nome</label></td> 2- I have understood that a php form and server-side validation are more powerful, since I am particularly concerned with spam submissions that override any JS validation. How easy would it be to convert an HTML form to PHP and include it in a Wordpress page? Can you link me to a tutorial on that? 3- I have found that uploaded files become public, which is something I would like to avoid. Is it possible to restrict access to them (e.g. only with FTP login or ftools login)? Thanks in advance, Mortom |