Connection/Output help

Hey all!!
Forgive me if I ask alot but you all have been a massive help :heart_eyes:

Im replicating within my site dashboard a FB/Tumblr post timeline. Issue is I have the HTML forms set up and did an form ECHO for results but nothing shows. Goal is to have output show on dashboard as well as profile page. Do I need to place an output div somewhere? Here is my code:

HTML

    <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    <span style="font-size: 48px; color: #C0C0C0;">
      <i class="fas fa-pencil-alt"></i>
              </span>
    </a>
            <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
           <form method="post" enctype="multipart/form-data">
        <textarea rows="4" cols="50" name="comment" form="usrform">Comment</textarea>
             Upload Image:
      <input type="file" name="fileToUpload" id="fileToUpload">
     <input type="submit" value="Upload Image" name="submit">
    </form>
    <button type="submit" form="nameform" value="Submit">Submit</button>

            </div>
          </li>
      <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
     <span style="font-size: 48px; color: #C0C0C0;">
      <i class="fas fa-video"></i>
              </span>     
    </a>
            <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
      <form method="post" enctype="multipart/form-data">
              <div class="col-lg-10">
                                   <input type="text" name="page_url" class="form-control" id="input_url" placeholder="Page embed URL" value="<?php echo !empty($userData['_url'])?$userData['url']:''; ?>">
                              <input type="submit" class="btn btn-primary" name="proSubmit">
               </div>
        </form>	
        </div>
              
          </li>
    </ul>
    </div> 

PHP

     <div class="card hovercard" style="width:400px">
      <div class="card-body info">
                      <div class="title">
                         <?php
    echo $file;
    echo "<br>";
    echo $comment;
    echo "<br>";
    echo $text;
    ?>
      <div class="form-floating">
      <textarea class="form-control" placeholder="Comment here" id="floatingTextarea"></textarea>
    </div>                  
         </div>
      </div> 
      </div>

I added a float comment so people can comment on post. Thanks for the help its greatly appreciated!!

:heart:

Nobody can read what you posted.

please wrap you code in [ CODE ] [ /CODE ] tags! (no spaces obviously)

Then -maybe- we can read when you posted.

1 Like

Sorry about that… thought it was edited at first…hope this is better :blush:

Sponsor our Newsletter | Privacy Policy | Terms of Service