Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Add A Select Box To Reviews

Quote Reply
Add A Select Box To Reviews
Hi All.

Can anyone help me with the code to add a select box to the reviews table and the reviews template pages? I've been trying for ages but still cant get it to work!!!

Thanks in Advance
Regards

Mark
http://www.host4.me.uk

No doubt i'll be back for more answers!
Quote Reply
Re: [mdj1] Add A Select Box To Reviews In reply to
What have you done and where are you stuck?

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Add A Select Box To Reviews In reply to
Hi Alex,

I've added the info to the reviews table like such

Code:


But im stuck at adding it to the template page.

There are examples of radio buttons and fields but none for select boxes.

I added

Code:
<select name="Review_Accom">
<option value="<%if Review_Accom%><%Review_Accom%><%endif%>" selected>
<%if Review_Accom%>
<%Review_Accom%>
<%endif%>
</option>
</select>


And the box displays but with no info in it.
Regards

Mark
http://www.host4.me.uk

No doubt i'll be back for more answers!
Quote Reply
Re: [mdj1] Add A Select Box To Reviews In reply to
Hi,

Did you look at the ratings.cgi and templates? This should be _exactly_ the same thing, unless you want an enum field in the Database.

There is no way to automatically generate the drop down in the template, it's hard coded -- like rate.html

That might be what is confusing you.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Add A Select Box To Reviews In reply to
Thanks PugDog,

I'll give that a try.
Regards

Mark
http://www.host4.me.uk

No doubt i'll be back for more answers!