Page 1 of 1

How to post the word "title" with a posts's title

Posted: Wed Aug 13, 2008 10:11 am
by shiva3000
Hi All,

I'm sure this is a simple problem but I would appreciate any help. My site currently has a simple php form people use to post directly onto the site http://tobeperfectlyhonest.com/?page_id=3

The form works very well, but due to the formatting of my site, I need to have the title of the post prefaced by the words "To be perfectly honest." How do I accomplish this?

Thanks!

Re: How to post the word "title" with a posts's title

Posted: Wed Aug 13, 2008 10:14 am
by idevlin
You mean when you are displaying what someone has posted on to the screen?

Erm, you can either just hard code it in the way you have on those pages, or when you save what they have posted, you can prefix it to the user's input before saving it.

Very simple, and not really much of a question, unless I am misunderstanding you?

Re: How to post the word "title" with a posts's title

Posted: Wed Aug 13, 2008 10:26 am
by shiva3000
How would I prefix it into the user's input? Thanks!

Re: How to post the word "title" with a posts's title

Posted: Wed Aug 13, 2008 10:32 am
by idevlin

Code: Select all

$content_title2 = "To be perfectly honest" . $content_title;
And then store the contents of $content_title2 to the database rather than $content_title.

Re: How to post the word "title" with a posts's title

Posted: Wed Aug 13, 2008 10:48 am
by shiva3000
Thank you so much!