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>';

Link to comment
Share on other sites

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>';

Link to comment
Share on other sites

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>';

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.