473,473 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

PHP(?) question

Hi, I'm wanting to know if this is possible;

I've got a HTML page that is basically a text box with a botton that
copies the contents of the textbox to the clipboard (source code
below).

I'm wanting to know if there is a quick way to "dynamically" change the
contents of the text box (the contents are templated replies to
customer enquiries, and there are about 100 of them).

What I am wanting to do is to have[, for example] one page that is the
HTML (term used loosly as it could be in PHP or similar) that is the
text box and the copy button, and all the replies then in [for example]
text files.

Is there a way to get the HTML page to change the conents of the text
box. I have seen some URLs that have "site.php?content=contentname" in
them, is this what I would use?

Am I making any sense at all?

Anyway, here is the code:

<start>
<script language="JavaScript" src="IncludeFiles/ImageSwap.js"></script>
<script language="JavaScript">
function CloseScreen() {
window.close();
}

function selectCode() {
var isMinIE4 = (document.all) ? 1 : 0;
var isMinIE5 = (isMinIE4 && navigator.appVersion.indexOf("5.")) >= 0 ?
1 : 0;
if(document.frmKnowledgeBase.txtBody.value.length> 0) {
document.frmKnowledgeBase.txtBody.focus();
document.frmKnowledgeBase.txtBody.select();
// //The code below only works with IE5.......
if (isMinIE5==true) {
var strBody = document.frmKnowledgeBase.txtBody.value;
window.clipboardData.setData("Text",strBody);
}
return false;
}
else {
alert("Nothing for be selected");
return false;
}
}
</Script>
<html>
<head>
</head>

<body bgcolor="#FFFFFF" topmargin="0" leftmargin="0">

<form name="frmKnowledgeBase" onSubmit="return selectCode();">
<table width="100%" border="0" cellspacing="0" cellpadding="0"
height="100%">

<tr>
<td align="center" valign='top'><br>
<table width="90%" border="0" cellspacing="1" cellpadding="2"
align="center">

<tr>
<td width='10%'><b>Description</b></td>
<td colspan='2'>positive feedback</td>
</tr>
<tr>
<td width='10%' valign='top'><b>Body</b></td>
<td colspan='2'><textarea name='txtBody' rows='18'
style='background-color:#F2F2F2;width:100%;'>Dear XXXXX,

Thank you for your positive suggestions and feedback about
our website.

We have passed the points you raised on to our technical and
design support teams.

etc etc etc

blah blah blah

We hope you enjoy using our site and we look forward to your
next visit.

Regards

The website

</textarea></td>
<td colspan='2' valign='top' align='center'><b>Copy
to<br>Clipboard</b><br><input type='image' src='Clipboard.jpg'
id='image'1 name='image'1></td>
</tr>
</tr>

</table>
<br>
</td>
</tr>

</table>
</form>
</body>

</html>

</end>

TIA
--
Neil

Mar 15 '06 #1
9 1182

fi***********@gmail.com wrote:
Hi, I'm wanting to know if this is possible;

I've got a HTML page that is basically a text box with a botton that
copies the contents of the textbox to the clipboard (source code
below).


Put them all in a database and use the querystring or post data to
determine which one to retrieve and display in the text box.

Why are you displaying them in the text box and making them available
to the clipboard? What happens once the data is on the clipboard?

--
Hywel

Mar 15 '06 #2

hy***********@gmail.com wrote:
fi***********@gmail.com wrote:
Hi, I'm wanting to know if this is possible;

I've got a HTML page that is basically a text box with a botton that
copies the contents of the textbox to the clipboard (source code
below).


Put them all in a database and use the querystring or post data to
determine which one to retrieve and display in the text box.

Why are you displaying them in the text box and making them available
to the clipboard? What happens once the data is on the clipboard?


Hi Hywel, long time no see, thanks for that. I don't really understand
what you mean though, could you elaborate a little?
--
Neil

Mar 15 '06 #3

hy***********@gmail.com wrote:
fi***********@gmail.com wrote:
Hi, I'm wanting to know if this is possible;

I've got a HTML page that is basically a text box with a botton that
copies the contents of the textbox to the clipboard (source code
below).

Why are you displaying them in the text box and making them available
to the clipboard? What happens once the data is on the clipboard?


Sorry, forgot to address this bit in my earlier reply.

The user will then paste the response into an email system and send the
reply to the customer.

Mar 15 '06 #4
fi***********@gmail.com wrote:
hy***********@gmail.com wrote:
fi***********@gmail.com wrote:
Hi, I'm wanting to know if this is possible;

I've got a HTML page that is basically a text box with a botton that
copies the contents of the textbox to the clipboard (source code
below).


Put them all in a database and use the querystring or post data to
determine which one to retrieve and display in the text box.

Why are you displaying them in the text box and making them available
to the clipboard? What happens once the data is on the clipboard?


Hi Hywel, long time no see, thanks for that. I don't really understand
what you mean though, could you elaborate a little?


Anyone....?
--
Neil
- www.neilmonk.com -
- Change the colour to Blue to email me -
Mar 15 '06 #5
Gazing into my crystal ball I observed fi***********@gmail.com writing in
news:11**********************@u72g2000cwu.googlegr oups.com:

hy***********@gmail.com wrote:
fi***********@gmail.com wrote:
> Hi, I'm wanting to know if this is possible;
>
> I've got a HTML page that is basically a text box with a botton that
> copies the contents of the textbox to the clipboard (source code
> below).
>

Why are you displaying them in the text box and making them available
to the clipboard? What happens once the data is on the clipboard?


Sorry, forgot to address this bit in my earlier reply.

The user will then paste the response into an email system and send the
reply to the customer.


Are these canned responses? If so, it would be easy for the person to
choose which ever one, then write the person's email into a form on the
same page and submit/mail it at the same time.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Mar 16 '06 #6

Adrienne Boswell wrote:
Gazing into my crystal ball I observed fi***********@gmail.com writing in
news:11**********************@u72g2000cwu.googlegr oups.com:

hy***********@gmail.com wrote:
fi***********@gmail.com wrote:
> Hi, I'm wanting to know if this is possible;
>
> I've got a HTML page that is basically a text box with a botton that
> copies the contents of the textbox to the clipboard (source code
> below).
>
Why are you displaying them in the text box and making them available
to the clipboard? What happens once the data is on the clipboard?


Sorry, forgot to address this bit in my earlier reply.

The user will then paste the response into an email system and send the
reply to the customer.


Are these canned responses? If so, it would be easy for the person to
choose which ever one, then write the person's email into a form on the
same page and submit/mail it at the same time.

Hi Adrienne,

I'm not sure what you mean by "canned responses" but the responses will
not be on the company intranet due to red tape. There is an
intranet-based system that the user uses to send the responses. What I
am trying to do will just be a place for the templated responses to be
stored and uses easily.
--
Neil

Mar 16 '06 #7
Gazing into my crystal ball I observed fi***********@gmail.com writing in
news:11**********************@v46g2000cwv.googlegr oups.com:
> The user will then paste the response into an email system and send
> the reply to the customer.
>
>


Are these canned responses? If so, it would be easy for the person to
choose which ever one, then write the person's email into a form on
the same page and submit/mail it at the same time.

Hi Adrienne,

I'm not sure what you mean by "canned responses" but the responses will
not be on the company intranet due to red tape. There is an
intranet-based system that the user uses to send the responses. What I
am trying to do will just be a place for the templated responses to be
stored and uses easily.


Exactly what I meant by "canned response". The templated responses should
be stored in a db, then the user can look through the various responses
(coming from the db), select the appropriate one, write the person's email
into the form on the same page and submit/mail it at the same time.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Mar 16 '06 #8

Adrienne Boswell wrote:
Gazing into my crystal ball I observed fi***********@gmail.com writing in
news:11**********************@v46g2000cwv.googlegr oups.com:
> The user will then paste the response into an email system and send
> the reply to the customer.
>
>

Are these canned responses? If so, it would be easy for the person to
choose which ever one, then write the person's email into a form on
the same page and submit/mail it at the same time.

Hi Adrienne,

I'm not sure what you mean by "canned responses" but the responses will
not be on the company intranet due to red tape. There is an
intranet-based system that the user uses to send the responses. What I
am trying to do will just be a place for the templated responses to be
stored and uses easily.


Exactly what I meant by "canned response". The templated responses should
be stored in a db, then the user can look through the various responses
(coming from the db), select the appropriate one, write the person's email
into the form on the same page and submit/mail it at the same time.

eek! I only know HTML! I'm guessing that you're talking about SQL and
stuff now aren't you?

Mar 16 '06 #9
Gazing into my crystal ball I observed fi***********@gmail.com writing in
news:11**********************@i39g2000cwa.googlegr oups.com:

Adrienne Boswell wrote:
Gazing into my crystal ball I observed fi***********@gmail.com writing
in news:11**********************@v46g2000cwv.googlegr oups.com:
>> > The user will then paste the response into an email system and
>> > send the reply to the customer.
>> >
>> >
>>
>> Are these canned responses? If so, it would be easy for the person
>> to choose which ever one, then write the person's email into a form
>> on the same page and submit/mail it at the same time.
>>
> Hi Adrienne,
>
> I'm not sure what you mean by "canned responses" but the responses
> will not be on the company intranet due to red tape. There is an
> intranet-based system that the user uses to send the responses. What
> I am trying to do will just be a place for the templated responses
> to be stored and uses easily.
>


Exactly what I meant by "canned response". The templated responses
should be stored in a db, then the user can look through the various
responses (coming from the db), select the appropriate one, write the
person's email into the form on the same page and submit/mail it at
the same time.

eek! I only know HTML! I'm guessing that you're talking about SQL and
stuff now aren't you?


No eek, it's really pretty simple. Trust me, once you learn this, you'll
put everything you can think of into a db. Much easier, let the db do the
work.

You can take a quick SQL tutorial over at
<http://www.w3schools.com/sql/default.asp>.
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Mar 16 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: sarah rosen | last post by:
For a NON-Technical person how easy is it to learn PHP ? (for website changes - mostly minor changes)I have never done any programming. If any one would be kind enough to let me know I would...
3
by: ..\\Dutch./.. | last post by:
Hi all I created a webshop and thats working great But i have a small problem which i cant get solved. When a customer checks out he sees a confirmation page which he can print. That same...
2
by: Steven Sinfield | last post by:
Hi There, I firstly wish to thank those who have helped me:) I have one issue that I sort of am lost in the dark, I have searched google without any luch, I am passing the following through to...
3
by: amit | last post by:
Hello group, I have switched to linux and PHP so totally new to this field. Please help me with my question. I have an HTML code which contains a drop-down control on it using <select...
5
by: ExecMan | last post by:
Hi All, I'm sure all the guru's know this one, but I cannot find it. I just installed Luinx. I configured Apache and got everything up and running. When I do my PHP test, it asks me to...
3
chunk1978
by: chunk1978 | last post by:
hi there... totally new to PHP... please forgive my ignorance... i've done some reading about PHP and it seems to be what i'm looking for... but i'm still not convinced... i'm creating a website...
1
by: ProjectGoldfish | last post by:
Currently im taking this old piece of code $fileName = $_GET; $full = $_GET; $ext = substr(strrchr($fileName, "."), 1); $path = "../../../include/images/mini/"; if($full) $path =...
0
by: Patriot89 | last post by:
I have a quick question in reference to php file extenstions... I have code for example like this... This is all located on this site www.ixalliance.com/BHS/Default (This is my nav.php file) ...
6
by: Ronald Raygun | last post by:
I want to be able to randomly select the following from an array: 1). An image 2). A piece of text (name of tge image) 3). A piece of text (description of the image) I want to be able to...
5
by: Ronald Raygun | last post by:
If I have the following class heirarchy: class A{ protected $m_type; function type(){return $this->m_type;} } class B extends A{} class C extends B{}
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.