html - How to make a php variable $_POST upon clicking it? -


i'm trying make $suggestion[$ss_count] become clickable link $_post once clicked. i'm trying achieve query expansion sort of effect. word of course needs information posted , needs recognized

if ($_post['query'])      

the code use is:

<?php if ($_post['query'])  {     $query = urlencode($_post['query']);     $s_count = 0;     $ss_count = 0;     $query = 'http://www.dictionaryapi.com/api/v1/references/collegiate/xml/'.$query.'?   key=135a6187-af83-4e85-85c1-1a28db11d5da';     $xml = new simplexmliterator(file_get_contents($query));     foreach ($xml -> suggestion $suggestion[$s_count])     {         $s_count++;     }     if ($s_count > 1)     {         echo ('<h4>did mean?</h4>');         while ($ss_count <=$s_count)         {         echo ($suggestion[$ss_count].'<br>');         $ss_count++;         }      } }  ?> 


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -