Jump to content


Photo

include <?=select_sex("");?>


  • Please log in to reply
2 replies to this topic

#1 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 21 March 2006 - 06:51 PM

Hi,

I had a html table row like this, which is a sex select box (female, male):-

<tr>
<td align="right" height="30">Sex</td>
<td><?=select_sex("");?></td>
</tr>

how can i write this in php...

i have the:-

echo " <tr>
<td align='right' height='30'>Sex</td>
<td></td>
</tr>";

but how do i put the

=select_sex("");

into the empty column...


#2 php_b34st

php_b34st
  • Members
  • PipPipPip
  • Advanced Member
  • 168 posts

Posted 21 March 2006 - 07:09 PM

try:

<?php
echo '<tr>
       <td align='right' height='30'>Sex</td>
       <td>' . select_sex("") . '</td>
       </tr>';
?>


#3 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 21 March 2006 - 07:24 PM

cheers mate..

sort




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users