Jump to content

[SOLVED] How would I get the name?


MySQL_Narb

Recommended Posts

not sure what you're trying accomplish here and this won't work because you have two request variables named "name"

but this is kind of how you would do this

 
<form action="profiles.php" method="get">
<input type="hidden" name="username" value="<?php echo $name; ?>">
<input type="text" name="name">
<input type="submit" name="submit_name"> 
</form> 

then to echo  on profiles.php

if(isset($_POST['submit'])) 
{
      $name=$_POST['name']
      echo "This is a profile of"; 
      echo $name; 
}

Archived

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

×
×
  • 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.