hi all

i have written a form for a friend that allows him to enter links and 
some info and then output it in html so he can copy and paste the html 
into his page.

sounds silly i know, but he is learning php and it is also a labour 
saving device.

im having a little trouble. the form contains ten drop boxes which 
contain the css style and 10 link input boxes. they all work fine, but 
if a box is left empty an empty link is shown on the next page. leaving 
something similar to this:

<ul> <li class="blog"><a href="http://www.soddengecko.com"; 
target="_blank">SoddenGecko1</a>.<br /></li> <li class="info"><a 
href="http://www.soddengecko.com"; target="_blank">SoddenGecko2</a>.<br 
/>blurb text 2</li> <li class=""><a href="http://"; 
target="_blank"></a>.<br /></li> <li class=""><a href="http://"; 
target="_blank"></a>.<br /></li> <li class=""><a href="http://"; 
target="_blank"></a>.<br /></li> <li class=""><a href="http://"; 
target="_blank"></a>.<br /></li> <li class=""><a href="http://"; 
target="_blank"></a>.<br /></li> <li class=""><a href="http://"; 
target="_blank"></a>.<br /></li> <li class=""><a href="http://"; 
target="_blank"></a>.<br /></li> <li class=""><a href="http://"; 
target="_blank"></a>.<br /></li> </ul>


is it possible to write a statement that will detect and emppty variable 
and not output that particular line of code?

also, there is a line break in each line of code incase the blurb text 
is filled in. if there is just a link and no blurb it still outputs the 
line break. can this be stopped also?

for those who think they can help i will make the php code available for you

thanks in advance.

mark m...


Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to