Jump to content

patk24

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

patk24's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. wat r u trying to do?? uplaod it to a host?? some hosts dont allow the mail() function (trust me if been looking for ever for one..) but ill take a look at your script and compare to mine and reply
  2. wat im sayin is, theres an FTP on my free host i just dont know how to set it all up so when ppl submit thier comments and what not it will write to my file and i can see it...i downloaded EasyPHP1.8 and it writes to the files through that but i cant do it for my host, thats what i need help with
  3. Ok im using a free host and im having trouble uplaoding everything succesfully, so can anyone help?? i have a website and on it is a survey and when they submit thier coments and what not i have it writing to a text file...well i just need to know how to uplaod the website and the text file so it will wotk and send to it, how do i do this? do i use an ftp server or something like a sql database, can someone walk me through it?
  4. that dont work it says there an error with 'confirm'
  5. hey it does support php and i am saving it as a .php maybe i can try another host we'll see what happeneds
  6. ok i use this code for my website: [code] <form method='post'> <div class="row">     Name<input name='Name' type='text' /><br /> <div class="row">     Email<input name='Email' type='text' /><br /> <div class="row">     Comment<input name='Comment' type='text' /><br /> <div class="row" >     <input type='submit' value='      Confirm Account'  name='Confirm' /> </form> <?php if(sizeof($_POST)>0) {     $filename = "subscribers.txt";     $content = $_POST['Name']."\n".$_POST['Email']."\n".$_POST['Comment']."\n\n\n";     $fp = fopen($filename, "a");     $fw = fwrite( $fp, $content );     fclose( $fp );         if(!$fw) echo "Couldn't write the entry.";     else echo "Successfully wrote to the file."; } ?> [/code] when i load it through my php server (easyphp1.8) it works fine but when i load it to my site on freehostia.com it doenst work.. i get the text boxes but underneath that is the php script all the letters and symbolys.. wats wrong with wat im doing?
  7. OK..im tryin to have this from saved to a txt file and heres the code: [code][<form method='post'>     Name: <input name='Name' type='text' /><br />     Email: <input name='Email' type='text' /><br />     Comment: <input name='Comment' type='text' /><br />     <input type='submit' name='Confirm' /> </form> <?php if(isset($_POST)) {     $filename = "subscribers.txt";     $content = $_POST['Name']."\n".$_POST['Email']."\n".$_POST['Comment']."\n\n\n";     $fp = fopen($filename, "a");     $fw = fwrite( $fp, $content );     fclose( $fp );         if(!$fw) echo "Couldn't write the entry.";     else echo "Successfully wrote to the file."; } ?>[/code] I get an "undifened index" error for 'Name' 'Comment' and 'Email' How can i fix this? BTW it says that its been successfully wrote to a file i just get that error and it says its on line 273 and that line is this one: [code]$content = $_POST['Name']."\n".$_POST['Email']."\n".$_POST['Comment']."\n\n\n";[/code] can anyone help?
  8. do u think anyone could write a quick script for me?? using the sruvey i posted above?
  9. yea i am using a sql..(mysql)
  10. ok ive been making a website for some time now and now i need some help with my php.. i set up a php server through EasyPHP 1.8 and it works and stuff but i need help with saving to a text file.. i have a survey and i cant have it mailed to me bc my host dont support the mail() function so i need to save it to something in order to see it.. can anyone help me?? an example of the survey would be something like this.. Name: Email: Comment: etc. see where im going? </help>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.