Jump to content

pagination


the-botman

Recommended Posts

how do i use

pagination here without loosing the value, this code is for a wap site and as it stands it will flood the user because there are to many frames on one page so if i can split the frames into atleast 3 pages would be great 

<form enctype="multipart/form-data" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
 <table>
	 <tr>
	 	<td>Image:</td><td><input type="file" size="32" name="image_field" value=""></td>
	 </tr>
	  <tr>
	 	<td>Text:</td><td><input type="text" size="32" name="image_text" value=""></td>
	 </tr>
	  <tr>
	 	<td>Font:</td>
	 	<td>
			<select name="text_font">
				<option value="3">1</option>
				<option value="4">2</option>
				<option value="5">3</option>
				<option value="fonts/addlg10.gdf" selected="selected">4</option>
				<option value="fonts/anonymous.gdf">5</option>				
			</select>	 	
	 	</td>
	 </tr>		 
	  <tr>
	 	<td>Text Position: </td>
	 	<td>
			<select name="text_position">
				<option value=""></option>
				<option value="TL">Top Left</option>
				<option value="CL">Middle Left</option>
				<option value="BL">Bottom Left</option>
				<option value="TC">Top Center</option>
				<option value="CC">Middle Center</option>
				<option value="BC" selected="selected">Bottom Center</option>
				<option value="TR">Top Right</option>
				<option value="CR">Middle Right</option>
				<option value="BR">Bottom Right</option>				
			</select>	 	
	 	</td>
	 </tr>
	 <tr>


	 	<td colspan="2"> </td>
	 </tr>		 
	 <tr>

	 	<td colspan="2">Choose frame:</td>
	 </tr>
	 <tr>
	 	<td><input checked="checked" type="radio" name="image_frame" value="" /></td>
	 	<td>None</td>
	 </tr>	 
	 <tr>
	 	<td><input type="radio" name="image_frame" value="frames/frame1.gif" /></td>
	 	<td><img src="frames/frame1.gif" alt="" width="100" /></td>
	 </tr>	 
	 <tr>
	 	<td><input type="radio" name="image_frame" value="frames/frame2.gif" /></td>
	 	<td><img src="frames/frame2.gif" alt="" width="100" /></td>
	 </tr>	 
	 <tr>
	 	<td><input type="radio" name="image_frame" value="frames/frame3.gif" /></td>
	 	<td><img src="frames/frame3.gif" alt="" width="100" /></td>
	 </tr>
	 <tr>

	<td><input type="radio" name="image_frame" value="frames/frame4.jpg" /></td>
	 	<td><img src="frames/frame4.jpg" alt="" width="100" /></td>
	 </tr>
	 <tr>

	<td><input type="radio" name="image_frame" value="frames/frame5.jpg" /></td>
	 	<td><img src="frames/frame5.jpg" alt="" width="100" /></td>
	 </tr>
	 <tr>

	<td><input type="radio" name="image_frame" value="frames/frame6.jpg" /></td>
	 	<td><img src="frames/frame6.jpg" alt="" width="100" /></td>
	 </tr>
	 <tr>

	<td><input type="radio" name="image_frame" value="frames/frame7.jpg" /></td>
	 	<td><img src="frames/frame7.jpg" alt="" width="100" /></td>
	 </tr>
	 <tr>

	<td><input type="radio" name="image_frame" value="frames/frame8.jpg" /></td>
	 	<td><img src="frames/frame8.jpg" alt="" width="100" /></td>
	 </tr>
	 <tr>

	<td><input type="radio" name="image_frame" value="frames/frame9.jpg" /></td>
	 	<td><img src="frames/frame9.jpg" alt="" width="100" /></td>
	 </tr>
	 <tr>

	<td><input type="radio" name="image_frame" value="frames/frame10.jpg" /></td>
	 	<td><img src="frames/frame10.jpg" alt="" width="100" /></td>
	 </tr>
	 <tr>


	<td><input type="radio" name="image_frame" value="frames/frame11.gif" /></td>
	 	<td><img src="frames/frame11.jpg" alt="" width="100" /></td>
	 </tr>
	 <tr>

	<td><input type="radio" name="image_frame" value="frames/frame12.jpg" /></td>
	 	<td><img src="frames/frame12.jpg" alt="" width="100" /></td>
	 </tr>
	 <tr>

	<td><input type="radio" name="image_frame" value="frames/frame13.jpg" /></td>
	 	<td><img src="frames/frame13.jpg" alt="" width="100" /></td>
	 </tr>
	 <tr>


<td><input type="radio" name="image_frame" value="frames/frame14.jpg" /></td>
	 	<td><img src="frames/frame14.jpg" alt="" width="100" /></td>
	 </tr>
	 <tr>


	 	<td colspan="2"><input type="submit" name="Submit" value="Generate"></td>
	 </tr>	 	 	 
 </table>
</form>

Link to comment
Share on other sites

It appears that since only the number of frames is the primary issue.

 

1. first form page has nothing but the frames from which to choose (5, 10 or what ever #)

      it has a submit button and and next button.

 

      Next button takes to to more frame choices. (calls to self with logic to see which group of  frames to display).

 

      submit button takes you to page where balance of from fields are chosen. do some validation on the frame selection. put frame selection as hidden field.

 

      submit button on this page then takes you to final processing page.

 

make sense?

Link to comment
Share on other sites

right. basic idea is first page is similar to a photo gallery - use pagination to 'browse' thru the frames(photos), make each frame(photo) clickable, which takes you to the next form page (similar to photogallery displaying large verison of thumbnail)

 

example of photogallery using that concept here (http://www.nstoia.com/projects/working/easyalbum/) except in your usage you would go to a form page.

 

I use ps_pagination.php  http://phpsense.com/php/php-pagination-script.html

 

 

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.