Forum Moderators: coopster

Message Too Old, No Replies

Form Name in php

         

HeadBut

2:22 am on May 14, 2006 (gmt 0)

10+ Year Member



Is a submited form 'name' property available in any php variable? Is there a way to get it?

shams

2:35 am on May 14, 2006 (gmt 0)

10+ Year Member



the from should be like:
<form action="name.php" method="post">
Name: <input type="text" name="name"><br>
<input type="submit">
</from>
to pass the varible to the name.php:
<?php
$name = $_POST['name'];
echo "Your name is ".$name;
<?

eelixduppy

3:11 am on May 14, 2006 (gmt 0)



If you mean: can you get the FORM NAME, then i don't think so. But, you could always add a hidden input with a certain value that tells you what form the information is coming from. I think this is what you mean.

Good luck!

eelix