• kholod

    (@kholod)


    hello everyone,
    I need help as soon as possible.
    This the first time I use WordPress. I make form use visual form builder. this form is for student to apply to my website. i want the information which student enter send and save in phpmyadmin database. where can i put the code. in WordPress or another place.
    i tried to put this code :
    ‘<?php
    // if using a custom function, you need this;
    global $kholoud_wrdp1;

    $first_name = ‘First Name’;
    $last_name = ‘Last Name’;
    $gender=’Gender’;
    $date_of_birth=’Date of Birth’;
    $martial=’Martial’;
    $street=’Street Address’;
    if(isset($_POST[“submit”]))
    $kholoud_wrdp1->insert( Prospective_student, array( ‘First Name’ => $first_name, ‘Last Name’ => $last_name, ‘Gender’=> $gender, ‘Date of Birth’ => $date_of_birth, ‘Martial’ => $martial, ‘Street Address’=> $street ),array(‘%s’,’%s’,’%s’,’%d’,’%s’,’%s’) );

    ?>’

    i put this code in page->text-> under [vfb id=2] in wordpress but it didn’t work.
    then i create new templet copy from page.php and add this code on it , then i chose this templet in form page but it didn’t work.

    please help me in details.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘send data from form to phpmyadmin database’ is closed to new replies.