jenna Posted May 20, 2009 Share Posted May 20, 2009 <?php echo 'Your ip is ' .$_SERVER['REMOTE_ADDR']; echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post">1:<input type="radio" name="form" value="select1" /><form action="'.$_SERVER['PHP_SELF'].'" method="post"><br>2:<input type="radio" name="envoi" value="select2" /><form action="'.$_SERVER['PHP_SELF'].'" method="post"><br>3:<input type="radio" name="form" value="select3" /><form action="'.$_SERVER['PHP_SELF'].'" method="post"><br>4:<input type="radio" name="form" value="select4" /> <br><button type="submit" name="nupp" style="font: bold 14px Arial">OK</button></form><br><br>'; $tekst = $_POST["form"]; switch($text){ case 'select1': $content = '1 car'; break; case 'select2': $content = '2 limousines'; break; case 'select3': $content = '3 pickup trukcs'; break; case 'select4': $content = '4 trailers'; break; default: $content = 'Choose something!'; break; } echo $content; ?> How to write choosers ip (so he can't choose again) and hes choice to files? Link to comment https://forums.phpfreaks.com/topic/158871-writing-data-file/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.