Posted by Etienne Marais on 11/22/05 08:56
Cujo wrote:
> Stefan Mueller wrote:
>
>> Actually I'm looking for a solution to add some text to an input box
>> which already exists.
>> In JavaScript I do it with
>> document.MyForm.MyBox.value = "some text";
>>
>> But how can I do that within PHP?
During or after the script has completed running ?
For after, have the javascript functions and events in place,
for during:
<?php
// some php code
if (time_is_right_to_update_field_during_php_script_execution) {
?>
<script language="javascript">
document.MyForm.MyBox.value = "some text";
</script>
<?
}
// some more php code
?>
--
Etienne Marais
Cosmic Link
South Africa
[Back to original message]
|