Skip to:
Content
Pages
Categories
Search
Top
Bottom

Custom submit form


  • aomao
    Participant

    @aomao

    Hi I need yout help. I want to add a custom submit form in Buddypress. This form will insert input into database.
    I have this form in my sidebar
    `

    `
    And this php script inside the sidebar.php
    `include_once(‘../../../../../wp-config.php’);
    include_once(‘../../../../../wp-load.php’);
    include_once(‘../../../../../wp-includes/wp-db.php’);
    global $wpdb, $bp;
    if($_POST[new_filter]””){
    //


    Store in DB


    $sql_query =$wpdb->get_results( $wpdb->prepare(“INSERT INTO ai_bp_activity (type) VALUES (‘”.$_POST[new_filter].”‘)”));
    }`
    But its not working.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Custom submit form’ is closed to new replies.
Skip to toolbar