email problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mozalol
    New Member
    • Feb 2007
    • 2

    email problem

    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?
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #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:

    Comment

    • mozalol
      New Member
      • Feb 2007
      • 2

      #3
      Originally posted by ronverdonk
      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<b r>".$R5."\t<br> ".$R6.
      "\t<br>".$R7."\ t<br>".$R8."\t< br>".$R9."\t<br >".$R10."\t<br> ".$R11."\t<br>" .$R12."\t<br>". $R13."\t<br>".
      $R14."\t<br>".$ R15."\t<br>".$R 16."\t<br>".$R1 7."\t<br>".$R18 ."\t<br>".$R19. "<br>********** *************** *************** *****<p>";
      //to write to file
      Fwrite($fp,$dat e);
      echo "<center><f ont 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
      Last edited by ronverdonk; Feb 18 '07, 12:09 PM. Reason: code within tags

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        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:

        Comment

        Working...