Thursday, 11 April 2013 19:56

how to pass variables with form submission in php

Written by 
Rate this item
(0 votes)

when you submit form with input and select
controls,the values of these controls are
passed with form.we get these as POST var-

but how will you pass any variables with the
form when form is submitted?
it is done by writing the follwing lines
under form -
<input type="hidden" name="kennel"
value="<? echo $kennel; ?>">

here we passing the variable kennel.

after the form submitted,you can get the
value of the variable and use by this way -


hope it helped...

Read 3237 times
Super User

Email This email address is being protected from spambots. You need JavaScript enabled to view it.

Latest discussions

  • No posts to display.