By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,303 Members | 1,260 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,303 IT Pros & Developers. It's quick & easy.

email problem

P: 2
Hi All,

i have a problem and i hope that some one help me .

i designed an html form using front page (index.html)

to send data to mail.php ( data store in txt file) i test the form on my computer

and worked well but when i tested on the net not soring data !!!! why?
Feb 17 '07 #1
Share this Question
Share on Google+
3 Replies


ronverdonk
Expert 2.5K+
P: 4,258
How do you think we could be of help if you don't even show us any of the working code you developed? We are not clairvoyant (yet).

Ronald :cool:
Feb 17 '07 #2

P: 2
How do you think we could be of help if you don't even show us any of the working code you developed? We are not clairvoyant (yet).

Ronald :cool:
_------------------------------------------------
Hi All,

i have a problem and i hope that some one help me .
i designed an html form using front page includes a questionnaire and
send data to mail.php ( data store in txt file) i test the form on my computer
and worked well but when i tested on the net not storing data !!!! why?
here is the code:
[php]
<html dir="rtl">
<?
// to open file
$fp = fopen("prosalim.txt","a+");
if(!$fp)
{
echo "cannot open file";
exit;
}
$date =$T1."\t<br>".$T2."\t<br>".$R1."\t<br>".$R2."\t<br >".$R3."\t<br>".$R4."\t<br>".$R5."\t<br>".$R6.
"\t<br>".$R7."\t<br>".$R8."\t<br>".$R9."\t<br>".$R 10."\t<br>".$R11."\t<br>".$R12."\t<br>".$R13."\t<b r>".
$R14."\t<br>".$R15."\t<br>".$R16."\t<br>".$R17."\t <br>".$R18."\t<br>".$R19."<br>******************** *************************<p>";
//to write to file
Fwrite($fp,$date);
echo "<center><font color='#944E6D'><b> thank you very much for filling the questionnaire
</b></font><center>";
fclose($fp);
//echo "<META HTTP-EQUIV='Refresh' Content=3;URL='index.html'>"

?>
</html>[/php]

Next time show your code within code or php tags!! - moderator
Feb 18 '07 #3

ronverdonk
Expert 2.5K+
P: 4,258
All I can see from your code is that you

- open a file
- fill a variable with unknown/non-initialzed variables
- write that variable to the file
- echo a message
- close the file

Does that sum up what you are doing? I cannot see any code that is related to entering data in a form, nor filling any variables, nor sending an email. This code cannot have sent any email on your system or whatever other system. Maybe you posted the wrong code!

Ronald :cool:
Feb 18 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.