Forums

This topic is locked

Want to make Text Box not be Editable.....

Posted 04 Feb 2005 15:52:10
1
has voted
04 Feb 2005 15:52:10 Mashkur Alam posted:
Hi
I am trying to send dynamic data via email, My Email form contains Title, and ID and rest of the information about client. So, I wanted to make the Title Text Box & ID Text Box not to be editable.

Currently It is working fine but, any one can modify the data.

Or is there any alternative way that instead using Text box can I transfer Dynamic data to the Email form?

Please any friend help.

Thanks

Babu

Edited by - babui on 04 Feb 2005 15:55:11

Replies

Replied 04 Feb 2005 16:07:32
04 Feb 2005 16:07:32 Jeremy Conn replied:
If it is information that the person viewing does not need to see, but that you want passed into the email, I would suggest using hidden fields. For example:

<form>
&lt;input type="hidden" name="Title" value="<font color=red>&lt;%= rsRecordset.Fields.Item("Title".Value %&gt;</font id=red>"&gt;
&lt;input type="hidden" name="ID" value="<font color=red>&lt;%= rsRecordset.Fields.Item("ID".Value %&gt;</font id=red>"&gt;
&lt;/form&gt;


<font color=red><b>* Replace with your DB-pulled values</b></font id=red>

<b>Connman21</b>
www.conncreativemedia.com
<b>DEVELOPMENT SETUP</b>
DWMX 2004 Studio
Web Server: IIS5
DB: Access2003/SQL2000
OS: XP Pro
Language: ASP/VB

Edited by - connman21 on 04 Feb 2005 16:08:16
Replied 04 Feb 2005 16:12:27
04 Feb 2005 16:12:27 Dave Thomas replied:
the way i would do this is drag the id and title out as plain text bindings

just for appearance sake, so they can still see the data.

and add the 2 fields mentioned above as hidden fields in the form.

u can disable form items, although i'm not sure wether this would disable them fields from being sent.


edit : beaten to it <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle> nice one conman.

regards
Dave

DMX Zone Manager

Edited by - UltraDav on 04 Feb 2005 16:18:10
Replied 04 Feb 2005 16:13:05
04 Feb 2005 16:13:05 Mashkur Alam replied:
Hi thanks,

This is excillent, I hope it will work fine, but if I want to show my clients what they are sending, Then I need to show them the data, is there any alternative?

Many thanks

Babu
Replied 04 Feb 2005 16:26:01
04 Feb 2005 16:26:01 Mashkur Alam replied:
Hi Dave,

Thanks a lot, but one confusion here:

Quote
the way i would do this is drag the id and title out as plain text bindings

just for appearance sake, so they can still see the data.

and add the 2 fields mentioned above as hidden fields in the form.

"Why Do I need to disable the form Items here?"

u can disable form items, although i'm not sure wether this would disable them fields from being sent.

Look forward from you.


Babu
Replied 04 Feb 2005 16:40:26
04 Feb 2005 16:40:26 Mashkur Alam replied:
Hi

This is great, its working fine, Showing the data and with hidden fields combination.

Many thanks

Babu
Replied 04 Feb 2005 19:33:27
04 Feb 2005 19:33:27 Chris Charlton replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>u can disable form items, although i'm not sure wether this would disable them fields from being sent.<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Dave is right, also you can give them a <i>readonly</i> attribute. Check out allowed attributes of the &lt;input&gt; fields: www.w3schools.com/tags/tag_input.asp


~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>
Replied 04 Feb 2005 20:46:29
04 Feb 2005 20:46:29 Mashkur Alam replied:
This is more great, I understand the logic. Thanks for your help.

Babu

Reply to this topic