cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Placing form outside a normal wordpress page
October 16, 2007
10:52 pm
Thomas
Guest

Is it possible to place cforms form outside of a wordpress page or post?

 

I'm developing a website that is using wordpress for a few things, but will mostly be using separate pages outside of wordpress.

Is there specific php code that I can use to include a cform in a page that is not generated by wordpress? 

 

The other option might be to turn my non-wordpress pages into part of wordpress, but I'd rather not mess with the templates if possible. 

 

Thanks!

Version 540

October 17, 2007
1:19 am
Thomas
Guest

Okay, I found an older post that has some instructions, but I'm getting an error.

 

I've added:

<link rel="stylesheet" type="text/css" href="http://domain.com/wp-content/plugins/contactforms/…..&quot; />
    <script type="text/javascript" src="http://domain.com/wp-content/plugins/contactforms/…..pt&gt;
    <?php require('./wp-blog-header.php'); ?>

 

 to the header of the html page and added:

 <?php
     insert_cform('2') ;
?>

 

 To the body of the page.

 The form submits, and the email is sent, but I get the following error dsiplayed at the top of the page:

 Warning: Cannot modify header information – headers already sent by
(output started at /home/……../form.php:9) in
/home/………/wp-content/plugins/dd-formmailer/dd-formmailer.php
on line 21

 

 

October 17, 2007
1:29 am
Thomas
Guest

Well this has been fun.  I found out that the problem was solved by deactivating the dd-formmailer plugin that I had tested a few weeks ago.

October 17, 2007
7:28 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Nice. Glad you got it sorted out!

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3760

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5358

Posts: 18738

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)