physaux Posted October 10, 2009 Share Posted October 10, 2009 Hey, i am trying to accomplish a relatively simple task, but it's getting hard, and google isn't helping me much... Here my code so far, (it is generic that i copied from a google result): <?php echo '<form action="" method="post"> Password: <input type="password" name="personal[name]" /><br />'; if ($_POST) { echo "LALALA"; echo htmlspecialchars(print_r($_POST, true)); //myfunction(value) } ?> can you guys help me out? What i want to happen is someone enters text into the field, then i want that value to be used in a function that i already have. I know it must be simple but im so lost thanks for ur help! Link to comment https://forums.phpfreaks.com/topic/177149-solved-help-getting-input-from-page-forms-idk/ Share on other sites More sharing options...
mikesta707 Posted October 10, 2009 Share Posted October 10, 2009 um.. myFunction($_POST['personal']['name']); ? Link to comment https://forums.phpfreaks.com/topic/177149-solved-help-getting-input-from-page-forms-idk/#findComment-934094 Share on other sites More sharing options...
physaux Posted October 10, 2009 Author Share Posted October 10, 2009 ah ty, the $_POST thingy was messing me up. I read up on the documentation and fixed it Link to comment https://forums.phpfreaks.com/topic/177149-solved-help-getting-input-from-page-forms-idk/#findComment-934110 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.