Jump to content

move input box at the end of a previous echo line?


sdowney1

Recommended Posts

How can i simply put the input box at the end of echo $page_pagination;

instead of dropping down to a new line.



echo $page_pagination;

echo '<FORM NAME="Library Search" ACTION="z3950get.php" METHOD="POST">';
echo '&nbsp&nbsp&nbsp&nbsp Or go to page number ';
echo '<input type="text"SIZE="5" name="pageinput2" value="'. $page_num.'">';
echo '<input type="hidden" name="recordcount" value="'.$recordcount.'"/>'; 
echo '<button type="submit" name="pageinput1" value="search">Search</button>';
echo '</FORM>';

echo '<BR><BR>';
echo 'Showing Page Number -> '.$page_num. ' | Total number of results -> '.$numrows . ' | Total number of pages -> '.$numofpages.'<BR><BR>';

Agree with doddsey..or u can try if this works for you assuming  $page_pagination is a string with no HTML components.

 

echo '<FORM NAME="Library Search" ACTION="z3950get.php" METHOD="POST">';
echo '&nbsp&nbsp&nbsp&nbsp Or go to page number ';
echo '<input type="text"SIZE="5" name="pageinput2" value="'. $page_num.'">';
echo '<input type="hidden" name="recordcount" value="'.$recordcount.'"/>'; 
echo $page_pagination;
echo '<button type="submit" name="pageinput1" value="search">Search</button>';
echo '</FORM>';

echo '<BR><BR>';
echo 'Showing Page Number -> '.$page_num. ' | Total number of results -> '.$numrows . ' | Total number of pages -> '.$numofpages.'<BR><BR>';

thanks, that was easy :)

I know CSS is a good way to do things.

I am pretty new at this

 

echo '<FORM NAME="z3950search" ACTION="z3950get.php" METHOD="POST">';
echo $page_pagination;
echo '   Or go to page number ';
echo '<input type="text"SIZE="5" name="pageinput2" value="'. $page_num.'">';
echo '<input type="hidden" name="recordcount" value="'.$recordcount.'"/>'; 
echo '<button type="submit" name="pageinput1" value="search">Get page number</button>';
echo '</FORM>';
echo '<BR><BR>';
echo 'Showing Page Number -> '.$page_num. ' | Total number of results -> '.$numrows . ' | Total number of pages -> '.$numofpages.'<BR><BR>';

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.