Hi!

I started learning Drupal, but now I'm in doubt whether it is the right choice. It would be great if somebody helped me figure out a way(if there is one)
to do what is described below in Drupal. Any help is greatly appreciated!

The website is for a start up company and it has to have following:
a page with a table containing images, when user clicks one of them, a new table appears, also filled with images, so the user fills in the first table with the images from the second.

Then I want the user to be able to save this table, that is, which images are selected (numbers, for like, 3,2,1..), so that later it's possible to retrieve it by clicking a link.

I have a page with tables that uses javascript, but how do I make log in system work? Is there a way to embed my code into a Drupal page? The page uses images, javascript, php, and css.

Thank you

Comments

WorldFallz’s picture

I don't really understand what you're trying to do, but yes, you can embed any combination of images, js, jquery, php, and css into a drupal page. You can do it through the ui by using the 'php code' input format, or in the theme. Depending on what the js is doing, you may have to use drupal_add_js.

helavissa’s picture

thanks, WorldFallz, for a reply, but now i'm more concerned about how to save information in the database.
let's say i'm logged in as user1, there is a "save" button on the page, when it's clicked, info associated with user1 is saved in the database, and then when this user logs in again, i'll retrieve it. how is this done?

WorldFallz’s picture

Ah sorry-- i think I misunderstood, i thought your script was already fully functional using cookies or something. I'm not really sure how to go about doing that-- i've not done anything like that before. But the bigger question is, if you're expending all this effort why use drupal at all? I would probably spend some time researching and seeing if there's a 'drupal way' to do what you need.

EDIT: maybe have a look at how the http://drupal.org/project/jquery_drag_drop and http://drupal.org/project/imageplacement modules handle drag and drop.