This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 3

V3 HTTP POST / drop down value


  1. offersnet
    Member

    Hello,

    I'm trying to send form data with HTTP POST.

    I searched the forum - http://www.appnitro.com/forums/topic/send-form-data-to-http-postget-url?replies=2

    The code snippet above is outdated and from 3 years ago.

    I've also tested this and it doesn't work.

    The same code snippet is on line 1515 in V3.

    1515                         foreach ($table_data as $key=>$value){
    1516
    1517                                 if($value == ''){ //don't insert blank entry
    1518                                         continue;
    1519                                 }
    1520
    1521                                 $field_list    .= "<code>{$key}</code>,";
    1522                                 $field_values  .= ":{$key},";
    1523                                 $params_table_data[':'.$key] = $value;
    1524
    1525                                 if(!empty($value)){
    1526                                         $has_value = true;
    1527                                 }
    1528                         }

    Also the value of a drop down menu is numbered 1,2,3... not text 'value' I give them. If I do a POST then it I'll receive the number 1,2,3... and not the text value I need. How can this be changed?

    Thank you!

    Posted 12 years ago #
  2. offersnet
    Member

    Bump

    Posted 12 years ago #
  3. yuniar

    The dropdown only contain the index number indeed. You will need to do an extra lookup query for this into the "ap_element_options" table. There you will see the actual value associated with the index number.


    MachForm Founder

    Posted 12 years ago #

RSS feed for this topic

Reply