php - Form sending all HTML from nav bar -


i'm having bit of issue in when im working script allows conversion of html csv files.

the actual table data sent , parsed absolutely fine, 1 of issues im finding html form sits inside trigger this, ends sending entire document html, , in excel file given html markup in navigation bar.

    <form class = "element brand place-right" action="client-summary.php" method="post">     <input type="hidden" name="data" value = "      <?php echo htmlspecialchars(strip_tags($table, '<table><th><tr><td>')); ?>">      <!--<input value="download xls" type="submit" class="bg-dark xls-download">-->          <button type ="submit" class="button fg-white xls-download">             <i class="icon-download-2 on-left bg-dark"></i>download report         </button>     </form> 

this sits inside navigation bar @ top of page, when i

$table = $_post['data'];  echo $table;  

on client-summary.php page of html in navigation, table data.

all of html comes before table data, , assume because html , javascript gets displayed first on php. i'm not sure why html before posted in data, data table itself.

if can shed light on i'd grateful, i'm not experienced php troubleshoot myself.

i have solved problem, turns out mistake of me trying bundle stuff 1 include(), in 1 of includes made call navigation, in turn displayed html on next page, meaning script turned data excel file include other 'gunk'.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -