Get variables from a href php -


i have:

  <a href="settings.php?yeah=<?php echo $yeah;?> & word=<? echo $word;?">settings</a> 

and in settings php:

  <? echo $_get['yeah'];      echo $_get['word'];   ?> 

the problem is working yeah.

you need remove spaces between variables in href :

 <a href="settings.php?yeah=<?php echo $yeah;?>&amp;word=<?php echo $word;?"> settings </a> 

Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -