Jump to content

skym

Members
  • Posts

    253
  • Joined

  • Last visited

Everything posted by skym

  1. I would think to try first something like:<div onmouseover="this.style.height='100px';">...</div>
  2. There would also be <div align="center"> ... </div> Not sure if it's deprecated this too... Probably it is.
  3. Check the quotes.To avoid the problems like this, you better use separate functions instead of inline javascript, like: <script>function chenge() {document.getElementById('changing').innerHTML = '<img src="images/ad_sundaysermon.jpg">';}</script><img src="images/testbut2.png" onmouseover="change();">
  4. skym

    form

    He said he did that, the problem now is "DB Error: syntax error".I gave my answer above.
  5. skym

    form

    Couldn't find the SQL syntax error?$insert = "INSERT INTO users ( username, password, regdate, email, location, show_email, last_login, act_num) VALUES ( '".$_POST['uname']."', '".$_POST['passwd']."', '$regdate', '".$_POST['email']."', '".$_POST['location']."', '".$_POST['show_email']."', 'Never', '$number')";
  6. skym

    What's wrong

    So actually there was a query error initially, the 'person' table did not exist.Using 'or die(mysql_error());' would have shown this error. Use mysql_error() also with mysql_select(), or anything that can return an error from the mysql server.In phpmyadmin the last SQL executed queries are always shown, you can take the executed query and put it in PHP.
  7. skym

    What's wrong

    Probably a query error.$result = mysql_query("select * from person") or die("Query error: ".mysql_error());
  8. skym

    Secure Email

    For syntax see php.net
  9. Coudln't find an answer...Only that setting display:block to img will resolve the problem.
  10. I think he's talking about Chris Pederick's toolbar http://chrispederick.com/work/webdeveloper/
  11. <td colspan="8" rowspan="7" valign="top" background="protected/images/WW6_17.gif"><div align="center"><br><br><font color="#FFFFFF"><?php include("regform.php") ?><br> The <td>, <div> and <font> tags are not closed.
  12. result=document.frm.result.value => document.frm.result.value=result
  13. skym

    Back Button

    http://www.w3schools.com/htmldom/dom_obj_history.aspFor empty 'history', check the length for the History object:<html><head><script>function goBack(){if (history.length != 0) { history.back(); } else { location.href='http://www.google.com'; }}</script></head><body><a href="#" onclick="goBack(); return false;">BACK</a></body></html>
  14. Options All -Indexesin .htaccess file.
  15. They are different../folder/folder2/file.jpg points to a folder relative to the currect folder,/folder/folder2/file.jpg is relative to the web server root folder.
  16. skym

    define()

    define('MY_CONSTANT_NAME','<a href="http://www.yahoo.com">Yahoo</a>');$welcome = MY_CONSTANT_NAME;
  17. I am not experimented at all with DOM, but, input objects are linked to the form object, for example when I want to access an input field I use document.formname.inputname. In your case, the 'myfile' input object is not linked to the 'myform' form object. Probably it should bevar myfile = myform.createElement("input");
  18. skym

    Image Upload

    If you use PHP check their site: http://www.php.net/manual/en/features.file-upload.php
  19. skym

    define()

    Did you try it?Where is the constant name?define('CONSTANT_NAME','<a href="http://www.yahoo.com">Yahoo</a>');http://php.net/define
  20. There should be only one POSTDATA, the 'id', from what I understand.Is there any $id = $_POST['id] at the top? If there isn't, the script will work only with 'register globals' on.Also, because it is user input, you should use:$sql = "SELECT title, artist, album, release_year, genre, language, date_added, added_by, english_lyrics, translation FROM songs WHERE song_id = '".mysql_real_escape_string($_POST['id'])."'";
  21. reportingsjr is right, it should be:<textarea name="engexcerpt" rows="6" cols="50"><?php echo htmlspecialchars(stripslashes($excerpt)); ?></textarea>
  22. document.all[anc].style.fontWeight = 'bold';http://www.w3schools.com/htmldom/dom_obj_style.asp
  23. I don't think it's possible, and there's no point for it either. Choosing Open means to download the file in the download folder set for the browser and open it when it is finished. So the file is still downloaded, 'save' just prompts the user to specify the destination folder.Practicaly anything that is shown on the screen can be stolen, any images or texts.
  24. Javascript won't do, but I found something interesting to try, as you said, a server-side script (PHP): http://datacompression.info/MP3.shtmlScroll down to Non-Commercial Libraries and check getID3(). Not only for MP3 files... I did not test it yet though.
×
×
  • Create New...