Jump to content

[SOLVED] Why won't it display $name?


3raser

Recommended Posts

Code:

 

<?php

$name = $_GET['name'];

?>

<b><textarea name="textarea" cols="40" rows="4" wrap="VIRTUAL"><form method="post" action="http://clubzobbies.com/supportgenerator/action.php">
field name: <input name="<?php echo $name; ?>" type="text" /><br />
  field name: <input name="<?php echo $name; ?>" type="text" /><br />
  field name:<br />
  <textarea name="message" rows="15" cols="40"></textarea><br />
<input type="submit" />
</form>
</textarea></b>

 

And when it gives me my code, it has name="", and it doesn't show $name!

Link to comment
https://forums.phpfreaks.com/topic/180198-solved-why-wont-it-display-name/
Share on other sites

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.