Jump to content

roksieu

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

roksieu's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Sorry for double post, but I must say thank you behicthebuilder
  2. Each line of values will be stored in separate row. For example: All values from "first option" will be saved to table "first_option" All values from "second" will be saved to table "second_option" etc. With all the fields I will also save product_id (so that I know to which products it goes to).
  3. Hello, I have a large form that can be built dynamically, user can add multiple fields and now I have problems with saving values to DB. I'm using codeigniter. This is my form and this is part of my controller that handle those inputs: $from = array(); foreach ($this->input->post('from') as $froms) { $from[] = $froms; } $to = array(); foreach ($this->input->post('to') as $tos) { $to[] = $tos; } $step = array(); foreach ($this->input->post('step') as $steps) { $step[] = $steps; } $odvisnost = array(); foreach ($this->input->post('odvisnost') as $dependency) { $odvisnost[] = $dependency; } And I get error: and 1st value is "productid" As you can see it tries to insert 'array' instead of values that I enter, I entered 2,3,4,5 and 6. My html form is correct with all inputs names as array[] for example: <input type="text" name="steps[]">
  4. Can I ask you for some example? Thank you.
  5. Hello, I have one issue, I have button "delete" that removes selected file from server, I'm using js callback "confirm" to confirm deletion, how can I then call php function that will remove the file? I have no problem with PHP part... but this one is killing me. This are my two callback $content.find('ul.gallery').wl_Gallery({ onEdit: function(el, href, title){ if(href){ $.confirm('Do you like to continue?',function(){ window.open('http://pixlr.com/editor/?referrer=whitelabel&image='+escape(href)+'&title='+escape(title)+''); }); } }, onDelete: function(el, href, title){ if(href){ $.confirm('Confirm deletion?',function(){ el.fadeOut(); }); } } });
×
×
  • 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.