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
using template tags with cforms
September 19, 2008
5:13 am
Antonio Perez
Guest

Please replace the ??? with your data!


[desc]:
_

On all of my posts I have a link that says "Podcast this (suggest the topics in this entry for an upcoming podcast).  Currently I am using mailto: so that people can suggest an article to be used in a podcast.  I'm wondering if I can pass along variables from wordpress (certain template tags, mainly the title of the article) to cforms.  I would like it to be something like this

podcast suggestions for  <?php the_title(); ?>

Name:

Email:

Message:

{note, here I would like to have the message field pre-filled with something along the lines of

Mr. Perez, I liked what you had to say in your blog entry, <?php the_title(); ?>, and I would like to hear some of these topics covered in that entry in an upcoming podcast}

SUBMIT BUTTON

Then once they submit the form I would like to have a button to redirect them to the original article…or just auto direct them back.

Is this possible and if so, how?

Thanks

September 19, 2008
7:31 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

You can't use PHP in any of the cforms settings, as it will not be parsed/executed.

However, you can use hidden fields and preset these via the URL as part of the link pointing to your contact form (this has been discussed here already).

There is no dynamic redirection supported right now, e.g. you can either redirect to a given page or stay on the contact form page.

September 20, 2008
2:39 am
Antonio Perez
Guest

"However, you can use hidden fields and preset these via the URL as part of the link pointing to your contact form (this has been discussed here already)."

Can this be dynamic/automattic?  On each one of my entries I'm going to have a form in the sidebar so that people can recommend some of the topics to be covered in an upcoming post.

Any chance you could add something along these lines in a newer version?

September 20, 2008
9:54 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Can this be dynamic/automattic? 

Can what be done automatic? The URL to the form (which should be on a separate page) you'll of course have to generate.

Any chance you could add something along these lines in a newer version?

Add what again?

September 21, 2008
3:18 pm
Antonio Perez
Guest

Oliver said:

Can this be dynamic/automattic? 

Can what be done automatic? The URL to the form (which should be on a separate page) you'll of course have to generate.

On my index.php in the loop I'm going to have a link such as Podcast This for each individual post so that someone can suggest that the topics covered in that particular entry to be featured in an upcoming podcast.  When someone clicks the link to the external form I want some text to be prefilled in the message box…such as "Mr. Perez I like the topics that you covered in your blog entry  <?php the_title(); ?>, and I would like to see these topics covered in an upcoming podcast."  Is it possible to pass an entries title to the external form?  If this is possible how would this be done?

Thanks

September 21, 2008
7:41 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

URL parametrization has been covered on this blog before, several times.

You need to call the external page (form) with http://site/page?field=abc

With field = the field ID (check the html source code of the page)

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
24 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: 3740

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5340

Posts: 18707

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

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

Administrators: Oliver (6400), Nicky (3)