sdowney1 Posted March 3, 2011 Share Posted March 3, 2011 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 '     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>'; Quote Link to comment https://forums.phpfreaks.com/topic/229436-move-input-box-at-the-end-of-a-previous-echo-line/ Share on other sites More sharing options...
doddsey_65 Posted March 3, 2011 Share Posted March 3, 2011 this requires css not php. enclose your pagination and form in a div then set one section to float:left and the other to float:right. or set them both to display:inline-block; Quote Link to comment https://forums.phpfreaks.com/topic/229436-move-input-box-at-the-end-of-a-previous-echo-line/#findComment-1182144 Share on other sites More sharing options...
samshel Posted March 3, 2011 Share Posted March 3, 2011 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 '     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>'; Quote Link to comment https://forums.phpfreaks.com/topic/229436-move-input-box-at-the-end-of-a-previous-echo-line/#findComment-1182146 Share on other sites More sharing options...
sdowney1 Posted March 3, 2011 Author Share Posted March 3, 2011 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>'; Quote Link to comment https://forums.phpfreaks.com/topic/229436-move-input-box-at-the-end-of-a-previous-echo-line/#findComment-1182184 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.