Page 1 of 1

Modify Field

Posted: Mon Oct 03, 2005 2:09 am
by yanxandnix
Script URL: internal LAN
Version of script: 0.93.1
Version of PHP: 4
Hosting company: internal LAN
Have you searched THIS FORUM for your problem:
(if not please do before posting)
If so, what terms did you try:

Write your message below:
I would like to use the category field for something else. I would like to use it for Company Name instead. I support several different companies and this would be helpful. I added the different company names to the category list. I am trying to pass the category as a hidden field but it does not seem to be working. Is there an easy way to do this?

Posted: Mon Oct 03, 2005 4:29 pm
by Klemen
This might be helpful:

viewtopic.php?t=315

Modify Field

Posted: Mon Oct 03, 2005 5:00 pm
by yanxandnix
Thanks.....I saw that post prior to my question. It adds the fields to the form and e-mail but doesn't add them to the database. (if I understand it correctly) I would really like to have this in the database. I really don't need the category field so I was thinking I could use it for something else. I was able to modify the category field to use it as I would like to. (company name) I guess the problem I am having is that I would rather have it passed as a hidden form field instead of a select box. Is there an easy way to do this?

More Info

Posted: Mon Oct 03, 2005 5:04 pm
by yanxandnix
I tried modifying the HTML code to use this:
<input name="category" type="hidden" value="Company_Name" />
instead of the Select Box. However, it always seems to use whatever category is set as the default.

Posted: Wed Oct 05, 2005 7:37 pm
by yanxandnix
I figured this out. I was passing the wrong variable. I changed it to pass the row ID instead and it works just fine. Thank you for your assiatance and a great script.