Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


What am I doing wrong in this PHP Script

  • Please log in to reply
1 reply to this topic



  • Members
  • 24 posts
  • Local time:02:34 PM

Posted 06 February 2011 - 10:36 PM

Why doesn't this work?
    if ($_POST['textbox1'] != "")
		$_ENV['mytestzeststring'] = $_POST['textbox1'];
	print $_ENV['mytestzeststring'];

<form name="registerform" id="registerform" action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>" method="post">
	  <input type="text" name="testbox1"/>
	  <input type="submit" value="Click me!"/>

Wouldn't this present on the page before the form declaration whatever the user types in the test box?

BC AdBot (Login to Remove)


#2 groovicus


  • Security Colleague
  • 9,963 posts
  • Gender:Male
  • Location:Centerville, SD
  • Local time:12:34 PM

Posted 06 February 2011 - 11:05 PM

After the page is submitted it should.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users