Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #15113
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Contact form positioning error messages |
| Date | 2015-03-15 12:30 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <me4c22$9q8$1@dont-email.me> (permalink) |
| References | <f3fd3c2a-605d-4b9e-b332-b424aace11b1@googlegroups.com> <5j2bgapvb129p4ni08m7ae8v32kqr80ohc@4ax.com> <73f91ae7-66a5-452d-a5db-ad51087c49e8@googlegroups.com> |
On 3/15/2015 11:00 AM, annettepeterenluna@gmail.com wrote:
> Dear Richard, Thanx for your help. I am sorry I thought that I had past the code of validation.php, but here it is:
>
> validation.php:
>
> <?php
> if ( isset($aErrors['error']) and count($aErrors['error']) > 0 ) {
> print '<div class="errorlist">';
> if ( $aErrors['error'] ) {
> print 'div' . $aErrors . '</div>' ;
> }
> print '</div>';
> }
> ?>
>
> Thanks for your help
>
All include() does is to effectively copy the code from the referenced
file into the current file at the location of the include statement. It
does not create a function.
And even if it were a function, it would not have the results you desire
- nor the results you indicate you see.
What is the real code you're using that shows the errors at the top of
the page?
Also, your development system should always have the following in your
php.ini file:
error_reporting=E_ALL;
display_errors=on;
This will display any errors in your code, which can help in debugging.
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Contact form positioning error messages annettepeterenluna@gmail.com - 2015-03-15 03:16 -0700
Re: Contact form positioning error messages Richard Yates <richard@yatesguitar.com> - 2015-03-15 06:47 -0700
Re: Contact form positioning error messages annettepeterenluna@gmail.com - 2015-03-15 08:00 -0700
Re: Contact form positioning error messages Jerry Stuckle <jstucklex@attglobal.net> - 2015-03-15 12:30 -0400
Re: Contact form positioning error messages mrr <mireero@free.fr> - 2015-03-16 08:47 +0100
Re: Contact form positioning error messages Richard Yates <richard@yatesguitar.com> - 2015-03-16 16:12 -0700
csiph-web