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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.