Current location: Hot Scripts Forums » Programming Languages » PHP » Many buttons problem


Many buttons problem

Reply
  #1 (permalink)  
Old 09-04-09, 01:05 AM
sunanurag sunanurag is offline
Newbie Coder
 
Join Date: Aug 2009
Posts: 51
Thanks: 2
Thanked 0 Times in 0 Posts
Many buttons problem

I am using many buttons to get different values for php and mysql, I need first last next prev add delete buttons, problem is thst i ve to call same php script whenever i click any button. and i ve to sort the data every time after clicking the button. I think this sortinh of data for every time button clicked will make my code slower.
Please dont tell me to post my code cause i dont ve any code n i ve to start from the starting.If u can then just write a sample code for me. i will be very much thankful for you.
how do i write code? please suggest me the best and easy way.
Please reply soon.
Thanks in advance..
Reply With Quote
  #2 (permalink)  
Old 09-04-09, 07:29 AM
therocket954's Avatar
therocket954 therocket954 is offline
Community Liaison
 
Join Date: Jul 2007
Location: Michigan, USA
Posts: 334
Thanks: 2
Thanked 8 Times in 8 Posts
Google has the answer.
__________________
--Eric Allison
Twitter: http://www.twitter.com/Eric_Allison
Reply With Quote
  #3 (permalink)  
Old 09-04-09, 12:29 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by sunanurag View Post
how do i write code?
That's quite a question, and not one that can be answered in any meaningful way.

The best I can do is, "You write code by learning the coding language, and building upon what you learn at each step of the way."

Here's a suggestion, though, for the "many buttons" problem: assign a value to each button and test for the value when the page is submitted. Depending on what value is found, have your code perform the appropriate action(s).
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote
  #4 (permalink)  
Old 09-05-09, 05:08 AM
donald_nqn donald_nqn is offline
Newbie Coder
 
Join Date: Sep 2009
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Ryan
This forum is meant for discussion of PHP and PHP coding help. If you want to make a request, please use the request forum. There has been an abundance of request posts made in this forum and they need to be made in the appropriate forum.

Thanks.
Here you have the answer.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple buttons in one form. abulreesh PHP 12 07-31-07 10:23 AM
Form Display Problem neevrap02 Visual Basic 1 09-05-06 05:18 AM
SQL/Coldfusion radio button problem..... Clark_Kent Other Languages 1 07-19-06 04:43 PM
Placing JButtons in a JPanel in a JScrollPane i.e. Scrollable buttons BigV Everything Java 2 05-26-05 11:29 AM
Asp and Microsoft Access 2002 problem gop373 ASP 2 10-06-04 09:13 AM


All times are GMT -5. The time now is 07:58 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.