Add New Question

Enter a new question below. The type refers to the way a participant can respond to the question.

  • Text will allow a single line of text to be entered
  • Text area will allow multiple lines of text to be entered
  • Single will prompt the participant with choices, only allowing a single response
  • Multiple will prompt the participant with choices, allowing multiple responses
  • When using single or multiple, enter the possible values in the value box separated by commas.

    Question:
    Type:
    Values:
    Required:
    "; echo ""; echo ""; echo ""; ?>

    get_results("SELECT * from $events_question_tbl where id = $question_id"); if ($questions) {foreach ($questions as $question) { echo "

    Edit Question

    Edit question below. The type refers to the way a participant can respond to the question.

  • Text will allow a single line of text to be entered
  • Text area will allow multiple lines of text to be entered
  • Single will prompt the participant with choices, only allowing a single response
  • Multiple will prompt the participant with choices, allowing multiple responses
  • When using single or multiple, enter the possible values in the value box separated by commas.

    "; ?>
    Question:
    Type:
    Values:
    Required: required == "N"){ echo ''; } if ($question->required == "Y"){ echo ''; } }} ?>

    get_var("SELECT max(sequence) FROM $events_question_tbl where event_id = '$event_id'") + 1; $wpdb->query("INSERT INTO $events_question_tbl (`event_id`, `sequence`, `question_type`, `question`, `response`, `required`)" . " values('$event_id', '$sequence', '$question_type', '$question', '$values', '$required')"); //echo ""; ?> query($wpdb->prepare("UPDATE $events_question_tbl set `question_type` = '$question_type', `question` = '$question_text', " . " `response` = '$values', `required` = '$required' where id = $question_id ")); //echo ""; ?> query($wpdb->prepare("DELETE from $events_question_tbl where id = '$question_id'")); //echo "&event_id="> Please select event to Add/Edit/Delete Registration Questions:"; $sql = "SELECT * FROM ". $events_detail_tbl; $result = mysql_query ($sql); while ($row = mysql_fetch_assoc ($result)) { $id = $row['id']; $name=$row['event_name']; echo "

    "; echo ""; echo ""; echo "

    "; } ?>

    Event Questions -

    Add additional questions to the registration form below. By default all participants will be asked for their email address, first name, last name, street address, city, state, zip code, and phone number.


    get_results("SELECT * from $events_question_tbl where event_id = $event_id order by sequence"); echo ""; if ($questions) {foreach ($questions as $question) { echo ""; echo ""; }} echo "
  • ".$question->question." (".$question->response.") type - ".$question->question_type; if ($question->required == "N"){ echo '

  • '; } if ($question->required == "Y"){ echo ' - REQUIRED'; } echo "
    "; echo ""; echo ""; echo ""; echo ""; echo "
    "; echo ""; echo ""; echo ""; echo ""; echo "

    "; if (isset($event_id) && $event_id > 0) { //added isset to hide button if event has not been selected echo "

    "; echo ""; echo ""; echo ""; echo "

    "; } break; } }