Reply to $_GET variable question

Your name:

Reply:


Posted by stephane on 04/03/06 22:52

I have a file.php in which a created dynamic hypertext links and send a
variable $row[0]

echo "<td><a href='modify_request.php?$row[0]'>$row[0]</a></td>";

I can see in the url on modify_request.php the variable value.

But I can't get it in another variable in modify_request.php

here is a simple example of what I am trying to do with file1
============================

<?php
$var1 = 2;
echo "<a href='get_it.php?$var1'>click here</a>";
?>

and in file2 I try to use the variable $var2
==============================

<?php

$var2= $_GET[var1];

print "$var2";

?>

==============================
in that example, it doesn't print $var2...

can someone tell me what misses to make this work please?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация