|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
I think I need some javascript?
I'm not even sure how to ask this. I think I needs a javascript function but not really sure.
I have a table comprised of some data pulled from mysql. only showing a handfull of fields, I have a button at the end of each row pointing to a seperate page pasing a value from one of the fields for that row? make sense?......prolly not code... TIA, mike |
|
#2
|
|||
|
|||
|
RE: I think I need some javascript?
you never state exactly what you are trying to accomplish...
|
|
#3
|
|||
|
|||
|
RE: I think I need some javascript?
guess that might help.
I want to be able to click on the button (or link) and pass a variable ($result_array[0]) to a seperate php page and select some info from mysql using that paramater in the sql page? does that help? visual image: TABLE FOOBAR ---------------------------------------- | 123 | blah | blah | blah | (button1) | | 456 | blah | blah | blah | (button2) | | 789 | blah | blah | blah | (button3) | ---------------------------------------- click on button 1, go to page xyz.php - "select * from FOOBAR2 where rec_id = 123" click on button 2, go to page xyz.php - "select * from FOOBAR2 where rec_id = 456" click on button 3, go to page xyz.php - "select * from FOOBAR2 where rec_id = 789" currently what happens is regardless of which button I select value 789 is passed....I want the button to cordinate for the record that it represents. I have seen this done before (I think, creating buttons in a table) but it required javascript and I can't seem to find it or search for it using the correct combination of terms..... |
|
#4
|
|||
|
|||
|
RE: I think I need some javascript?
in each row you have a form opening tag, but not a form closing tag which is causing your problem. as an example, change this bit of code as follows...
note the closing form tag before the closing </td> tag. Then when the form is submitted it will only post the form fields inside the form tags... |
|
#5
|
|||
|
|||
|
RE: I think I need some javascript?
what a goob....
That got it. I just totally over looked that.... thanks, mike |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > I think I need some javascript? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|