Hello,
most of the time, the 'contact' link on Web Sites leads to a form we're you enter your name, your E-Mail coordinates, a subsject and a content. The 'action' is to create an E-Mail and sent it, this avoids having an E-Mail address which can be directly harversted by spambots.
Code is really straightformward -- except for one thing :
the HTML code contains:
<form id="contact" method="post" action="http://my.web.site/traitement_formulaire.php">
<-- field definition, actions, ... --> </form>
I've put 'traitement_formulaire.php' at the root of the dir implementing the Web site, and managed by SiteMgr. Now, clicking on the 'Send Message' button, I got:
Attempt to access information outside current website: cat_id=
So the question: how do I access a generic php code from a SiteMgr page ? Did someone implement such a 'contact form' application ?
Regards
Pascal
Re: SiteMgr : add form to send E-Mail to Webmaster
Why not use the contact form provided by Sitemgr? It can write emails
and/or add contacts to an addressbook.
Ralf
Ps: your problem is your rewrite rule for seo links, it catches your
script url, you can either exclude it or put the script in a subdir
Dupuis schrieb:
> Hello,
> most of the time, the 'contact' link on Web Sites leads to a form we're you
> enter your name, your E-Mail coordinates, a subsject and a content. The
> 'action' is to create an E-Mail and sent it, this avoids having an E-Mail
> address which can be directly harversted by spambots.
>
> Code is really straightformward -- except for one thing :
> the HTML code contains:
> <form id="contact" method="post"
> action="http://my.web.site/traitement_formulaire.php">
> <-- field definition, actions, ... --> </form>
> I've put 'traitement_formulaire.php' at the root of the dir implementing the
> Web site, and managed by SiteMgr. Now, clicking on the 'Send Message'
> button, I got:
> Attempt to access information outside current website: cat_id=
> So the question: how do I access a generic php code from a SiteMgr page ?
> Did someone implement such a 'contact form' application ?
>
> Regards
>
> Pascal
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference _______________________________________________
eGroupWare-users mailing list
eGroupWare-users@... https://lists.sourceforge.net/lists/listinfo/egroupware-users
Re: SiteMgr : add form to send E-Mail to Webmaster