Jump to content

[SOLVED] URL Redirection


Jbert2

Recommended Posts

<?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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.