using require_once to display contents of a file
-
Hi all,
I have a form which I use over and over on different pages. I usually just use the following in my non wordpress sites : require_once(“./wp-content/form.php”)without any problems HOWEVER when I do this in wordpress it does not display the contents of the file.
I know it has found the file because when I view the source I can see the text in the page but it isn’t showing up to the end user….wordpress has stripped out all of the html tags (no <form>, no <table>) and just dumps the text into the code.
If anyone has any ideas I would be very grateful..it’s driving me mad!
Thanks a lot
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘using require_once to display contents of a file’ is closed to new replies.