Re: Including a php script
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 47264
interpreted = N
texte = you can't include a php into webdna, and expect webdna to process the php instructions.in order for your webserver to know that it's a php file, you have to send the request for a php file, eg. the browser has to ask for bla.php.so you have to redirect it, or put it in a form with post, etc.Gyuridemawno@msradiogroup.com wrote:>I have a form that sends its values to an email address, i used webdna>to validate the fields, but i want to use a php script to generate and>send the actually email, i tried using an include, but it didn't work.>i believe it is a problem with the include statement i wrote, because>the php script will work, and so will the validating section of the>webdna page. here is the code i used. my os is slackware 8.1 (linux)>and webdna 4.5.0.i would apreciate any advice or insight :)>thanks in advance>lloyd>demawno@msradiogroup.com>=F]error=[error]+1[/math]> [/showif]>>[showif [error]!0][redirect>../forms/souamerror.tpl?[formvariables][name]=[value]&[/formvariables]author=sgagolf][/showif]>>[hideif [error]!0]>[INCLUDE file=mailtesterxx.php]>[redirect thanks.html]>[/hideif]>