PHP는 1 links.php
에 html
이있는 링크가 있습니다. 것은 내가 page.php
에서 $link variable
accessin 생각하면 내가 HTML로 PHP 파일에서 PHP 변수에 액세스
$links = (int)$_GET['link'];
page.php
에서
$link
하지만 완전히 접근하고 있지 않다 때문이다
<a href="page.php?link=$link">Links</a>
page2.php
사용할 수 없습니다. include ("page.php")
사용할 수 없습니다. 왜냐하면 그것은 html
과 css
을 포함하고 싶지 않기 때문입니다. 그냥 $link variable
을 원합니다.
조언이 필요합니다. 미리 감사드립니다.
제거 JavaScript 및 jQuery 태그 –
이 링크 확인 - http://stackoverflow.com/questions/13135131/php-getting-variable-from-another-php-file –