Whenever I summit my for form, instead of directing my visitor to a thankyou page :
header("Refresh: 0;url=http://www.clinicalmedicalassistant.net/thankyou.html");
I get this error message
Warning: fopen(admin/data.dat) [function.fopen]: failed to open stream: No such file or directory in /home/durupc/clinicalmedicalassistant/process.php on line 41
Warning: fwrite(): supplied argument is not a valid stream resource in /home/durupc/clinicalmedicalassistant/process.php on line 45
Warning: Cannot modify header information - headers already sent by (output started at /home/durupc/clinicalmedicalassistant/process.php:41) in /home/durupc/clinicalmedicalassistant/process.php on line 47
The dreamweaver also gives me this error message as well. Can someone please help me. Please tell me how to correct this mistake. I do not understand much of script language. I used form generator. Thank you.
include("global.inc.php");
$errors=0;
$error="The following errors occured while processing your form input.<ul>";
pt_register('POST','FirstName');
pt_register('POST','LastName');
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Try this. Go to
/home/durupc/clinicalmedicalassistant/
and see if the admin folder exists. If it does navigate down and see if the data.dat file exists.
If all this is in place try modifying the permissions. If this is not in place go ahead and add it and give data.dat full read write permissions.
Try the form again.
When you get errors early in the process.php the failure will prevent further processing and this would be why you don't see the thankyou page.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Whenever I summit my for form, instead of directing my visitor to a thankyou page :
header("Refresh: 0;url=http://www.clinicalmedicalassistant.net/thankyou.html");
I get this error message
Warning: fopen(admin/data.dat) [function.fopen]: failed to open stream: No such file or directory in /home/durupc/clinicalmedicalassistant/process.php on line 41
Warning: fwrite(): supplied argument is not a valid stream resource in /home/durupc/clinicalmedicalassistant/process.php on line 45
Warning: Cannot modify header information - headers already sent by (output started at /home/durupc/clinicalmedicalassistant/process.php:41) in /home/durupc/clinicalmedicalassistant/process.php on line 47
The dreamweaver also gives me this error message as well. Can someone please help me. Please tell me how to correct this mistake. I do not understand much of script language. I used form generator. Thank you.
include("global.inc.php");
$errors=0;
$error="The following errors occured while processing your form input.<ul>";
pt_register('POST','FirstName');
pt_register('POST','LastName');
Try this. Go to
/home/durupc/clinicalmedicalassistant/
and see if the admin folder exists. If it does navigate down and see if the data.dat file exists.
If all this is in place try modifying the permissions. If this is not in place go ahead and add it and give data.dat full read write permissions.
Try the form again.
When you get errors early in the process.php the failure will prevent further processing and this would be why you don't see the thankyou page.