|
Posted by Hilarion on 09/16/05 17:42
> I'm trying to display a stored text document(number) as an Input on a form.
> I can display the number/value as follows using iframe:
>
> <iframe src="counter.txt" width="50" height="20" frameborder="0" border="0"
> scrolling="no" marginheight="0" marginwidth="0"></IFRAME>
>
> But I realize there is no way to source my Input field directly from my text
> file.
>
> I must populate a named Input with my value for my PHP script to process it
> with my other form fields.
>
> I was told this would be a job for PHP, but can't find a script this
> specific.
<textarea name="my_field_name"><?php
htmlspecialchars( file_get_contents( 'counter.txt' ) );
?></textarea>
Hilarion
Navigation:
[Reply to this message]
|