PDA

View Full Version : just a little question


squawell
11-05-2002, 12:27 PM
we know $post[field2] show up where the user come from

but some of them do not input any information so my question is

if they dont input any information the $post[field2] will show up

N/A which file and which part should i edit to??

thankz.... :)

Lesane
11-05-2002, 12:30 PM
functions.php

if ($post[field2]=='') {
$post[field2]="N/A";
}

squawell
11-05-2002, 12:45 PM
Originally posted by Lesane
functions.php

if ($post[field2]=='') {
$post[field2]="N/A";
}
Lesane.....i cant find that in my functions.php file

where should i add that code?

thankz

Xenon
11-05-2002, 01:07 PM
you shoul?d add it into the getpostbit function.

Another way is to install logicians Conditional Template Hack, ok, for just this one, it's too much work, but perhaps you need it more often ;)

squawell
11-05-2002, 01:23 PM
Originally posted by Xenon
you shoul?d add it into the getpostbit function.

Another way is to install logicians Conditional Template Hack, ok, for just this one, it's too much work, but perhaps you need it more often ;)
thankz Xenon...:D:D:D

i got it works....... :cool: