Monday, 20 July 2015

Form action value move another form in php

This concept mostly used in multiple form value insert in Database. the first form value post the action and get other form . just give the form value in action page try this coding

Step 1 :

Make one new form and design the input types Give the action link in on other page ex: page.php submit the value and method will be post on other page watch the below coding

<form method="post" name="dataform" action="fl-index.php">
<input type="text" class="search" name="contact-person" required="required">
</form>

step 2 :

Type the below php coding in action page Echo the value in  2nd form input type box value

<?php  $name=$_POST['company-name']; ?>
<form method="post" name="getdataform" action="">
<input type="text" class="search" name="contact-person" value="<?php echo $name; ?>" required="required">
</form>

0 comments:

Post a Comment