Page 1 of 1

Help!

Posted: Fri Oct 22, 2004 9:36 pm
by BamaRob
Okay, so I've copied funtion.contact_form.php to function.titled_contact_form.php, made some changes and got it to working. I added this:

Code: Select all

if (!empty($params['title'])){
          echo "<p class=smalltitle>{$params['title']}</p><p></p>";
}
Now, if I do this:

Code: Select all

{titled_contact_form email="sombody.somewhere.com" title='Email Somebody'}
It returns what I expect:

Code: Select all

<p class=smalltitle>Email Somebody</p><p></p>
etc.
etc.
However, if I do this:

Code: Select all

{titled_contact_form email="sombody.somewhere.com" title="Email Somebody"}

Notice the difference in the quotes around Email Somebody
It returns:

Code: Select all

<p class=smalltitle>"Email</p><p></p>
Can anyone tell me why it don't like the double quotes (")?

Thanks,

BR

Help!

Posted: Fri Oct 22, 2004 9:46 pm
by Ted
Just a hunch. Try...

Code: Select all

if (!empty($params['title'])){
          echo "<p class=smalltitle>{".$params['title']."}</p><p></p>";
}