[quote:b244dce9a1][i:b244dce9a1]Originally posted by qualitum[/i:b244dce9a1]
Try to redirect your PHP script to the HTML file instead of including it. And use &saveemail.html?email=$email&. You need a variable name AND a value. Your code just passes the value.
HTH.[/quote:b244dce9a1]
I receive this error
Warning: Failed opening '/usr/local/cpanel/base/frontend/test/contact/
[email protected]' for inclusion (include_path='/usr/local/cpanel/3rdparty/lib/php/')
I explain better , I have this php script , check.php
&?php
if (!ereg ('^([a-zA-Z0-9\-\_]+\.)*[a-zA-Z0-9\-\_]+\@(\[([0-9]{1,3}\.){3,3}[0-9]{1,3}\]|([a-zA-Z0-9\-]+\.)+[a-zA-Z]{2,4})$', ($email)) || strlen ($email) &100 ) {
$bad4 = &Please verify email&br&&;
}
else $bad4=&&;
if ($bad4!=&&
{
include &/usr/local/cpanel/base/frontend/test/contact/up_email_error.php&;
}
else
{
include &/usr/local/cpanel/base/frontend/test/contact/saveemail.html?email=$email&;
}
?&
If I insert a wrong email for example
http://www.mydomain.com:2082/frontend/test/contact/check.php?email=dflòksdfòksadfò
it opens up_email_error.php indicating me the error , and it's ok .
If I insert a good email
http://www.mydomain.com:2082/frontend/test/contact/
[email protected]
I receive this error
Warning: Failed opening '/usr/local/cpanel/base/frontend/test/contact/
[email protected]' for inclusion (include_path='/usr/local/cpanel/3rdparty/lib/php/')
I tried to use
include &/usr/local/cpanel/base/frontend/test/contact/saveemail.html?email=$email&;
and
include &/usr/local/cpanel/base/frontend/test/contact/saveemail.html?$email&;
but it doesn't work .
I have this problem only inside cpanel , because I use this kind of script very often without problems .
Do you (or anyone) have any idea ?
Thank you