Hey. I am new to this forum! I am learning php and school and having a bit of trouble doing what I want to do. I essentially want to take a set of variables and use them as my information for my
[code]<form method=”post” action=”tictactoe.php?s1=N&s2=N&s3=N”>
So this is what I have..
[code] if($_GET){
extract($_GET);
$data = “$s1″.”$s2”.”$s3″;
print(‘<form method=”post” action=$data>’);
print(‘<input type=”submit” id=”s1″ name=”s1″ value=” ”/></form>’);
All the $s values are being pulled from the url using $_GET and I want to put them into a string value and make it so if $s1=Y and all others are N it does..
[code]print(‘<form method=”post” action=”s1=Y&s2=N&s3=N”>’);
I don’t want to make 100000 if statements though! Any help would be AWESOME!
Thanks
Vex