Jbert2 Posted June 2, 2008 Share Posted June 2, 2008 <?php // check for submit if (!isset($_POST['submit'])) { // and display form ?> Please sect one <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"> <input type="checkbox" name="example[]" value="Arrays">Arrays<br /> <input type="checkbox" name="example[]" value="Loops">Loops<br /> <input type="checkbox" name="example[]" value="Sort">Sort<br /> <input type="checkbox" name="example[]" value="Submit">Submit<br /> <input type="checkbox" name="example[]" value="New">New<br /> <input type="checkbox" name="example[]" value="New">New<br /><br /><br /> <input type="submit" name="submit" value="Select"> </form> <?php Hi everyone, I am new to PHP but learning quickly, I think!. What I am trying to do is make a list of all the scripts I write as I learn. I want to list them in a main page with check boxes and a submit button. I will open the main page in the localhost server. I then want to select a checkbox and when I hit submit, the PHP script will load the new URL in the address window and display the new php page. I checked into HTTP header location but I think this is a little different. Thanks for any input Jim Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted June 2, 2008 Share Posted June 2, 2008 Why use a form? Wouldn't it be easier to just have a link with a target of _blank? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.