Jump to content

array functions working on $_POST


niche

Recommended Posts

How do I get array flip to return results other than "Array" after user input?Script:

<?phpsession_start();?><form method="post" action="">First Name:<input type="text"  name="Fname">:<br />Middle Name:<input type="text"  name="Mname">:<br />Last Name:<input type="text"  name="Lname">:<br /><input type="submit" value="submit" name="submit"><br /></form><br /> </form><?phpecho var_dump($_POST) .'<br/>';echo array_flip($_POST); ?>

Link to comment
Share on other sites

Silly me.New script:

echo var_dump($_POST) .'<br/>';$a =  array_flip($_POST);echo var_dump($a) .'<br/>'; 

Thank-you justsomeguy.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...