For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > March 2006 > Pear formatting question









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Pear formatting question
James Reinke

2006-03-27, 9:58 pm

Greetings all.

I've been using QuickForms for a w or two and I'm
really liking it. I'm attempting to customize/format
a few pages using and I'm running into formatting
issues. I figure maybe if someone out there could
offer some advice, I'd greatly appreciate it. I've
learned from this package it sometimes requires out of
the box thinking, and I need to become more accustomed
to this. In any case, here is what I'm wondering:

1) I'm trying to insert raw HTML directly after an
input field but am unable to figure out a way. If I
wanted to insert a "<br />" directly after the input,
such that this input:

<input name="Login" type="text" />

Becomes:

<input name="Login" type="text" /><br />

Is there any easy/plausible way to do this without
modifying the library functions?

I've used both

$form->addElement('static','info','<br />');

and

$form->addElement('html','<br />');

But the problem with these is that it just adds
another <tr><td><br /></td></tr> _after_ the form.

2) In addition to this, when I insert static/html
using the aforementioned method (or any method for
that matter) QuickForms adds the bold tag (<b>Stuff
Here</b> ) automatically, and I haven't found a way to
disable this. If anybody can help that would be great!

_____________________
James Reinke

CLEVERSAFE

MOBILE 847.340.7581
jreinke@cleversafe.com

_____________________

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com