Jump to content


Photo

mysql record id as a hidden form variable


  • Please log in to reply
2 replies to this topic

#1 daniish

daniish
  • Members
  • PipPip
  • Member
  • 27 posts

Posted 28 October 2006 - 10:41 PM

Evening!

I have a form where i would like to send a hidden variable. The value of this variable is a URL to an html template displaying much of the information entered in the form. The info from the form is stored as a record in a MySQL database. I am using the following code but i'm not sure its right.

<INPUT TYPE=hidden NAME=info_id VALUE="http://www.globexposure.net/more_info.html?marker_id=" . $row['id'] . >

The URL needs to include the MySQL 'id' for the record but i don't know how to parse the id to the form before the form is submitted. I hope you understand me and can help.


Many thanks
Olly

#2 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 29 October 2006 - 06:14 PM

Sorry, I don't understand....
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#3 daniish

daniish
  • Members
  • PipPip
  • Member
  • 27 posts

Posted 30 October 2006 - 09:37 AM

I have re-phrased this and asked it elsewhere where i got a solution. Please ignore this post.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users