Hello, <?php $profilinfo = file_get_contents('URL'); preg_match_all('#<form name="download_form" method="post" action="([^>]+)*">#', $profilinfo, $key); echo "Link: "; echo $key[0][0]; ?> PHP: Between action=" and "> is the download-link. But with my code, my page is empty. Why? Is this a wrong regex? // Sorry for my english.
It would've been better if I can see the HTML code. Try this: preg_match('#<form name="download_form" method="post" action="(.*)"#Us', $profilinfo, $key); PHP: