Jump to content

[SOLVED] Help Getting input from page? --forms?? idk!


Recommended Posts

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!

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.