By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,528 Members | 1,375 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,528 IT Pros & Developers. It's quick & easy.

pass value from HTML form to php

100+
P: 178
Hi,

I have a form where I wish to pass one variable onto the next php page using a form action submit

[HTML]<form action="designmode.php?proj_id=document.getElement ById("proj_id_hidden").value" method="POST" id="company1" name="company1">

<input type="hidden" value="" name="proj_id_hidden">

<input type="submit" value="Design Mode" />
</form>[/HTML]
Aug 19 '08 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
This will be done automatically for you when you press submit unless you wanted a GET variable from a POST action.

PS. please use code tags when posting code. Thanks!
Aug 19 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.