Jump to content

Archived

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

dandandan

Help with form/variable!

Recommended Posts

my code: (im leaving out things that dont matter, like the body and head tage, to save space)

<form name="form" enctype="multipart/form-data" method="post" action="test.php">
  <p>Your name:
    <input type="text" name="name">
    <input type="submit" name="Submit" value="Submit">
</form>


and the code for test.php (the form action=test.php). im not including the html, only the php.

<?php
print("$name");
?>



now, for some reason, test.php will NOT print $name. I get no error message. just a blank page. here is is uploaded. http://wolfstudios-online.com/email


PLEASE HELP!

Share this post


Link to post
Share on other sites
Try print($_REQUEST['name']);

You can also use $_POST['name'], since you are using a post form.

Share this post


Link to post
Share on other sites

×

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.