webgyrl Posted December 23, 2007 Posted December 23, 2007 Hi All, I'm scratching my head here.... I have been testing a new contact forum (Stadtaus Form) and I am trying to use the method they outline for a PHP include to call the form into my own page. I want to put a simple graphic header before the form. I used a DIV to place the header and the form and for some reason, no matter what, the form came before the header even tho the header was called first and the form second. So I decided to do an experiment and put everything in a table (not my first choice!). Odd thing is, the same thing happens. You can see it live here: >h##p://www.natalie-brown.com/contact/contact.php Any idea why the header is not coming first and the form will not budge from there? Any help or hints would be appreciated. An early Merry Christmas! Quote
TCH-Andy Posted December 23, 2007 Posted December 23, 2007 Merry Christmas Nat That seems odd. Can you give us a link to the php code ( just save a copy of that file with .txt extension - making sure it has no personal information in it ) Quote
webgyrl Posted December 23, 2007 Author Posted December 23, 2007 Hi Andy- Here is a link to the .txt of the .php >h##p://www.natalie-brown.com/contact.php.txt This is the tables version. If I can find a way to make it work with DIVs I'd rather do that tho. I just got so frustrated I went to tables. Got your PM and will reply.... just gotta get brekkie for my boyfriend and I... rather late night last night LOL Thanks! Quote
TCH-Andy Posted December 23, 2007 Posted December 23, 2007 Have you got something set to interpret all files as php ? Because your host is interpreting that text file before presenting it .... Probably best just to paste ( or email me ) the source code for that page. Quote
TCH-Dick Posted December 23, 2007 Posted December 23, 2007 Their instructions for including the script seem to be lacking. From what I can see they are asking you to include index.php then add an echo for the output. If this is the case, the echo is also in the included index.php file and needs to be commented out there. The other option would be to not include the script and just modify the template file they provide to look like your site. Quote
webgyrl Posted December 24, 2007 Author Posted December 24, 2007 Have you got something set to interpret all files as php ? Because your host is interpreting that text file before presenting it .... Probably best just to paste ( or email me ) the source code for that page. Andy, You've just reminded me! I think the host does the PHP through CGI or something. I can't recall the exact wording. I do remember encountering some issue with Joomla and templates and they said something about PHP being compiled thru CGI (this is probably the wrong terminology). Let me see if I can find that old mail that says exactly what. Can you PM me your email addy? I'll send you the files as a zip. Perhaps it would be easier to do what Dick says? I just want the header and there is nothing else fancy going on. What do you think? Quote
webgyrl Posted December 24, 2007 Author Posted December 24, 2007 Their instructions for including the script seem to be lacking. From what I can see they are asking you to include index.php then add an echo for the output. If this is the case, the echo is also in the included index.php file and needs to be commented out there. The other option would be to not include the script and just modify the template file they provide to look like your site. Let me play with that option. Might just be the easiest thing to do instead of doing the include. Will let you know what i find.... Thanks! Quote
webgyrl Posted December 24, 2007 Author Posted December 24, 2007 Hey Andy and Dick.... Using the included .tpl worked. I just added a div at the top and it's working the way I'd like it to now. >h##p://www.natalie-brown.com/contact/index.php Now I need to get CAPTCHA to work! Whooo heeee! Fun fun fun! LOL Thanks guys! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.