hi. i wont to know how ca i define a variable like that: EXM myfile.php?adion=adion gorani : How can i define the surname as a variable EXM: echo"$surname"; to display Gorani.( How can i select the next word ) ??
<a href='myfile.php?fname=adion&surname=gorani'>click here</a>
in myfile.php
<? echo "First = $fname and last=$surname<BR>"; ?>
Yes i know that method but i want to select from a string like that ( $string=adion gorani) and to display the text next the word adion !
You dont make any sense : )
What you want to do is parse a string into substrings. See the strings section of the manual, and/or the section(s) on regular expressions.