Is it possible to have an antispam field? E.g. one that generates numbers or text that is a little jumbled and hard for spam bots to read that users have to copy into a field before the form is submitted.
Cheers
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anything is possible.
What you are asking for is beyond the scope of the original design but easy enough to customize for your use. Feel free to cusomize your installation any way you wish. If you feel this would be a valueable addition to the program, make the suggestion in the Request Feature Enhancement (RFE) section of this forum.
If you would like to discuss methods of customizing your installation, feel free to contact me.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks I have added it to the RFE as you suggested. However any help you can provide for me to start looking into this now would be appreciated.
I am new to PHP but learning all the time and willing to give all a go - I'll have a look around and see if there is anything I can use (add into my forms), I was just wanting to identify if anyone had already done it.
Cheers
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
One thing that has been suggested, and tried, is putting a php wrapper around the form itself.
By doing this you then link to the form like this; http://url.com/forms/form/form1.php?link=valid
The php wrapper checks the variable $link to see that is "valid" before it allows the form to be displayed. This is the simplest (easiest to implement) spam filter you coud use.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
</BODY></HTML>
*********************************************************
New file is renamed with the .php extention
(form2.php)
Point your browser to this file.
Point your browser to this file and add "?link=valid"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
HI all
Just testing phpformgen - excellent so far :)
Is it possible to have an antispam field? E.g. one that generates numbers or text that is a little jumbled and hard for spam bots to read that users have to copy into a field before the form is submitted.
Cheers
Greg
Anything is possible.
What you are asking for is beyond the scope of the original design but easy enough to customize for your use. Feel free to cusomize your installation any way you wish. If you feel this would be a valueable addition to the program, make the suggestion in the Request Feature Enhancement (RFE) section of this forum.
If you would like to discuss methods of customizing your installation, feel free to contact me.
Thanks I have added it to the RFE as you suggested. However any help you can provide for me to start looking into this now would be appreciated.
I am new to PHP but learning all the time and willing to give all a go - I'll have a look around and see if there is anything I can use (add into my forms), I was just wanting to identify if anyone had already done it.
Cheers
Greg
One thing that has been suggested, and tried, is putting a php wrapper around the form itself.
By doing this you then link to the form like this;
http://url.com/forms/form/form1.php?link=valid
The php wrapper checks the variable $link to see that is "valid" before it allows the form to be displayed. This is the simplest (easiest to implement) spam filter you coud use.
That is an idea - any ideas where I go to learn about using php wrappers?
Cheers
Greg
Wrapper is a generic term describing the code implementation. You won't find anything specifically describing php wrappers.
Take a simple HTML file:
*****************************************************
<HTML><HEAD><TITLE>My Form - created with phpFormGenerator</TITLE></HEAD>
<BODY>
<font face='arial' size=2><b>All fields marked with a * are required:<br>
<form enctype='multipart/form-data' action='process.php' method='post'>
<table width='50%' border=0>
<tr><td> sfdg</td>
<td>
<input type=text name='sfdg'></td></tr>
<tr><td> sdfa</td>
<td>
<input type=radio name='sdfa' value='a'>a<br><input type=radio name='sdfa' value='k'>k<br><input type=radio name='sdfa' value='m'>m<br></td></tr>
<tr><td> sdf4</td>
<td>
<select name='sdf4'><option value='k'>k<option value='j'>j<option value='h'>h<option value='g'>g</select></td></tr>
<tr><td> bnd4<font color='#ff0000'>*</font></td>
<td>
<input type='file' name='bnd4'></td></tr>
</table>
<input type='submit' value='Submit This Form'> <input type=reset value='Clear Form'></form>
<br><br><br><a href='http://phpformgen.sourceforge.net'><img src='button.jpg' border=0></a>
</BODY></HTML>
*****************************************************
Insert a "wrapper" inside the BODY tags.
<?php
$mylink="";
$mylink=$GLOBALS['link'];
if ($mylink == "valid") {
print<<<_HTML_
//Put html body here//
_HTML_;
}
else {
}
>?
*******************************************************
modified file
*******************************************************
<HTML><HEAD><TITLE>My Form - created with phpFormGenerator</TITLE></HEAD>
<BODY>
<?php
$mylink="";
$mylink=$GLOBALS['link'];
if ($mylink == "valid") {
print<<<_HTML_
<font face='arial' size=2><b>All fields marked with a * are required:<br>
<form enctype='multipart/form-data' action='process.php' method='post'>
<table width='50%' border=0>
<tr><td> sfdg</td>
<td>
<input type=text name='sfdg'></td></tr>
<tr><td> sdfa</td>
<td>
<input type=radio name='sdfa' value='a'>a<br><input type=radio name='sdfa' value='k'>k<br><input type=radio name='sdfa' value='m'>m<br></td></tr>
<tr><td> sdf4</td>
<td>
<select name='sdf4'><option value='k'>k<option value='j'>j<option value='h'>h<option value='g'>g</select></td></tr>
<tr><td> bnd4<font color='#ff0000'>*</font></td>
<td>
<input type='file' name='bnd4'></td></tr>
</table>
<input type='submit' value='Submit This Form'> <input type=reset value='Clear Form'></form>
<br><br><br><a href='http://phpformgen.sourceforge.net'><img src='button.jpg' border=0></a>
_HTML_;
}
else {
echo "<li> Sorry";
}
?>
</BODY></HTML>
*********************************************************
New file is renamed with the .php extention
(form2.php)
Point your browser to this file.
Point your browser to this file and add "?link=valid"