Not sure how to add this to my code and I'm still missing something here.
My first script is just a simple inputbox asking the name of the user:
<form name="cars" method="post" action="get.php">
Name of member: <input type="text" name="membersname" size="30"><br>
</tr></table>
<br><br>
<input type="submit" value="Get Info">
</form>
The action script should take the username and retrieve the image from the site: It will be the only link on the page that refers to images.mysite.com/users/could be anything from here
So far I have:
<?
print ($membersname);
?>
<br><br><br>
<a href="http://mysite.com/<? echo ($membersname); ?>">[url]http://mysite.com/[/url]<? echo ($membersname); ?></a>
<br><br><br><br>
<--! I know from here the code just needs to go to the site, find where the link starts with "images.mysite.com/users" and that line can equal a value.!-->
<?
$pattern = '#src\s*=\s*(["\'])?[url]http://images.mysite.com/users/[/url]([^\s]*?)\\1#i';
preg_match($pattern, $subject, $matches);
print_r($matches); ?>
<br>
<? echo ($pattern) ?>
I know I have some values that are not defined in the code you wrote, but I am new at this and I hav'nt messed with php in a while. Hope someone can help me out a little her.