Jump to content

Ger Membername


justlukeyou

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.