Jump to content

sanusart

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

sanusart's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The advantage of <div> is the ultimate browser capability but it surely more complex than <table>.
  2. You can build it on a basis of simple guestbook, just give it a looks and feels of a blog. I'm not much of a .php programmer but if you want something like this (but articles instead of signings) i can send you the scripts, it's very short and simple.
  3. Thank you, i knew i did some stupid mistake! Works god now on the server too!
  4. Hi, if i get you correctly - you need to upload files to the host: Download any FTP client (filezilla - http://sourceforge.net/projects/filezilla etc.). In the address field write: ftp.zendurl.com In password field: your zendURL password In port field: 21 Upload your files to "www" folder. To open database you just need to give it a name and to correct the paths of your files. Hope it helps. Sasha
  5. Sorry, forgot the error: All the files are uploaded and i rechecked the paths (after all it runs without problems on localhost)... and the files are chmoded to 755 so the're should be writable.
  6. Hello, I am VERY new to php and i probably missing something stupid. I was trying to write some code to let visitor of my site to submit text information from <form> and to let that info be displayed on the same page bellow. The code is working great on my PC but it keeps erroring me on the server. I'd really appreciate if someone could check the code for a possible errors. The form (on guestbook.php page): <center> <form action="commentsdata.php" name="data" method="post"> Name:<br /> <input type="text" class="textfield" name="name" /><br /> Message:<br /> <textarea class="textarea" name="message"></textarea><br /> <input type="reset" value="Reset" /> <input type="submit" value="Post" /> </form> <p class="pack">You can use standart <i>html</i> tags in the message window.<br /> <small>(This may cause the page validation to fail).</small></p> </center> <br /> <h1><img src="arrow.gif" alt="" />The messages:</h1> <?php include ("massages.html"); ?> The form action (commentsdata.php): <?php $data = "<p><b>From:</b><br /> ".$_POST['name']."<br />"; $data = $data."<b>Message:</b><br /> ".$_POST['message']."</p><hr />"; $file = "massages.html"; if (!$file_handle = fopen($file,"a+")) { echo "Cannot open file"; } if (!fwrite($file_handle,$data)) { echo "Cannot write to file"; } echo ('<meta http-equiv="Refresh" content="0;url=posted.html" />'); fclose($file_handle); echo ('<meta http-equiv="Refresh" content="5;url=guestbook.php" />'); ?> Thank you very much, Sasha
×
×
  • 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.