Posted by Jerry Stuckle on 09/30/18 11:20
Jay wrote:
>
>
> I don't want to add data to Database unless all data are valid.
>
That's standard.
>
>>- HTML form with PHP 'echo()' statements to put in data from above and
>>validation clues)
>
>
> I don't want to re-write the HTML code for the form. That's why I use
> include("form.html") in the processForm.php.
>
Then include the echo statements in the form itself. Just ensure the variables
are set to an empty string ('');
> I think you misunderstood my question. I try to access form's field
> within processForm.php page. For example,
>
> Using document.getElementByID('element') to set the values of the
> form's fields. May I do that ?
>
No you can't. PHP knows nothing about the HTML. Larry's response was correct
and accurate.
> Thanks again,
>
> Jay Hana
>
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|