this is the basic structure of my table i put other values in it with help of javasciprt from a other table. I have one more table and user can select from there some name and addresses...on double click of other table i populate this basic table...
Now I want to put these selected name and address in this basich table in database but how i can read these items with php
you may need to use regular expression if the table structure has more complications such as javascript or css classing and styling options but if it stays as simple as this then the above code will produce a CSV that can be passed for recording in the db
I havnt tested this code but I'm sure you wont have issues with it, double check any errors as I tend to forget things like the conformity of keyword names.
Cheers
Dal
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
please have a look i have this basic table and put there values with javasciprt from other table when user double click on other table..Now on click of this submit button i have to send values to database that are avaliable on above table.
Well it's a little hard to explain if your not seeing the solution I explained. In that case I would suggest using what you already have with javascript creating the table for you them values are already floating around somewhere. Have you got the script handy that passes the data to this new page as I could advise you easier on that rather than go into too much detail here regarding my previous solution.
Kind regards
Dal
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
Be frankly i dont have an idea in which I can do that. doing some other nice things with php but here i am little bit confused in which way it will work..?
Without code I can't see how it would work, my suggestion was kind of based on the assumption that you were able to understand that the name of a textbox or textarea was passed to php and that since you already have created a javascript to prepare the data in this fashion, that my theory would have been easy to implement.
Since this was an issue I can't very well advise you without first seeing the way the current script works, is it theory your after or is it advice on where to go with the script?
Kind regards
Dal
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
Okay let me try. Let me try to explain you i have two table A and B from table A user can double click and select the thing these selected things I put in table B that is above mentioned. Now from table B what items user have selected i want to put them in database on click of this submit button.
But I dont know how i can read these values form table B with POST or GET weil I think I only can read values with POST and GET from those element those have a 'name' property but table have an 'id'
Ok if we are just going through this in theory then I would suggest reading up further on php before asking questions about it. With all respect I provided you a theory it's up to you to either use my advice or not. I'm sure others will come up with other suggestions on how to solve this but when I looked at your post I read it in the way that you required help with the idea on how to pull data from a html table source and I provided just that. If I cant see the code then I cant suggest anything particular as it would be a stab in the dark. FYI you CANT $_POST a table, you can only $_POST a form field like a text box or TextArea which is what I suggested.
Kind regards
Dal
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
Well post your code if you have any issues with the php side of things but your going to need to use javascript to pop the innerHTML into the form feild I imagine.
Remember to mark your thread solved once your cool with it.
Kind regards and good luck
Dal
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."