Your code looks strange, you are mixing HTML and PHP w/o indicating which one is which. The following should be the correct syntax:
<a href = "test.php?tmpVar=<?php echo $LinkArr[$i] ?>">Test</a>
And then just referer to the $tmpVar in test.php
As for books, I cannot ethically recommend anyone in particular. See the reviews at phpclasses.upperdesign.com, as well as the list at www.php.net/books.php
HTH
Saman Salehian wrote:
I'm a beginner in PHP and I can't pass some parameter from a form to another,my problem is shown in bellow :
I wrote this exp. in master page :
<a href = "test.php?tmpVar=$LinkArr[$i]>Test</a>
This part of my code is work correctlly, but i don't know how to recive tmpVar variable. if i can it , i use that for an SQL command.
please wrote me how i can do it or tell me a good refrence for learnning PHP.
Thank you