Jump to content

Recommended Posts

Posted

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! :xmas:

Posted

Merry Christmas Nat :xmas:

 

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 )

Posted

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!

Posted

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.

Posted

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.

Posted
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?

Posted
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!

Posted

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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...