Difference between revisions of "Files/EditorForm"

From EPrints Documentation
Jump to: navigation, search
 
Line 11: Line 11:
 
list of e-mail.
 
list of e-mail.
  
The syntax is http://xxx.yyy.kk/contact.php?editor=<id of the editor>
+
The syntax is
 +
http://xxx.yyy.kk/contact.php?editor=<id of the editor>
  
 
There is a  javascript email pre-validation and php post-validation.
 
There is a  javascript email pre-validation and php post-validation.

Revision as of 14:29, 12 January 2007

Connect Editors and Authors with a PHP form

If you write an e-mail on a static web page, you are sure to recive a huge ammount of spam. But we want to allow authors to write to the editor of his country. To do this, , Josep-Manuel Rodríguez-Gairín wrote a PHP form to 'protect' editors e-mail addresses.

The script sends a mail to a list of addresses defined in a config file (for general purposes as main page) but also can send mail to a specific editor searching your email in users table of eprints database. It can use the SQL 'users' table and also an extra list of e-mail.

The syntax is

http://xxx.yyy.kk/contact.php?editor=<id of the editor>

There is a javascript email pre-validation and php post-validation. There is also a check against spam robots.

To have a copy of the script, you need to ask to Josep-Manuel Rodríguez-Gairín, http://bd.ub.es/pub/rzgairin