justlukeyou Posted March 30, 2011 Share Posted March 30, 2011 Hi, I have a form which inserts information into a database. However, I am trying to take transfer across the membername (username) from another table but I have come quite stock on this. I am transferring it as a hidden value. Do I need to access the table on the form page and if so how? <table width="300" border="0" align="center" cellpadding="0" cellspacing="1"> <tr> <td><form name="form1" method="post" action="phpviewquestion.php"> <table width="100%" border="0" cellspacing="1" cellpadding="3"> <tr> <td colspan="3"><strong>Your Question</strong></td> </tr> <tr> <td width="71">Question</td> <td width="6">:</td> <td width="600" height="50"><input name="question" type="text" id="question"></td> <td width="71">Notes</td> <td width="6">:</td> <td width="600" height="50"><input name="notes" type="text" id="notes"></td> </tr> <tr> <td colspan="3" align="center"><input type="image" name="image" value="Submit" src="http://www.domainco.uk/images/submitbutton.PNG" name="image" width="100" height="53"></td> <input name="category" type="hidden" value="Furniture" id="category" > <input name="membername" type="hidden" value=".$user['membername']." id="membername" > Link to comment https://forums.phpfreaks.com/topic/232212-ger-membername/ Share on other sites More sharing options...
btherl Posted March 30, 2011 Share Posted March 30, 2011 Is the code you posted not working? What do you expect it to do, and what is it doing instead of that? Link to comment https://forums.phpfreaks.com/topic/232212-ger-membername/#findComment-1194628 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.