Jump to content

skym

Members
  • Posts

    253
  • Joined

  • Last visited

Everything posted by skym

  1. The scripts looks ok, should work... Delete the @ before the mysql_connect() and try again, probably there will be some sort of error shown.
  2. I don't understand, how to unquote a boolean value?
  3. Dan> Or $_GET, can't know. Anyway, I don't think he's got that problem.
  4. Simple type casting:$flag = (bool) $flag;More at: http://ro.php.net/manual/en/language.types.type-juggling.php
  5. skym

    Web Pictures

    I don't see any mirror effect...
  6. Chocolate's code does work, you just have to put the script after the TDs, the following code works at me: <html><head><title>title</title></head><body><table border="1"><tr><td>1</td><td>2</td><td>3</td><td>4</td></tr></table><script type="text/javascript">function lol(){this.innerHTML = prompt('please enter a value')}tdCol=document.getElementsByTagName("td");for(i=0;i<tdCol.length;i++) {tdCol[i].onclick = lol;}</script></body></html>
  7. You should learn English, it's not that hard. If you don't, you are probably missing about 90% of all what's on the Internet... And it's really a must if you want to learn programming. To understand the tutorials, to know how to ask questions on forums and so on...
  8. I don't think it's possible to upload more than one file with only one <INPUT>.I can't even imagine the script which will handle the uploaded files.
  9. It works at me too. There is an error in the 'for' line, might help. Use:for(i=0;i<tdCol.length;i++) {
  10. Interesting, it works at me in IE, Opera and Firefox. Might be something with the browser's options?
  11. skym

    asp compared to php

    It says at the end of the article: "If a user is looking for some e-commerce application development then many would call ASP the ideal choice."Why would ASP be the choice?
  12. I am not a JS master either, but I think that: var popup = new Function("txt","alert(txt)") is echivalent to: function popup(txt){ alert(txt)}
  13. I don't know why, I never worked with forms this way, but it seems that when you click any of the two thumbnails, the page reloads, so the big picture will always show what is initially defined in its src attribute.Use simple img tags instead of forms:<tr><td><img src="logarska_dolina/CD_2_(8).jpg" height="50" width="50" onclick="setPic(this.src)"></td></tr><tr><td><img src="logarska_dolina/CD_2_(9).jpg" height="50" width="50" onclick="setPic(this.src)"></td></tr>
  14. skym

    CSS and Forms

    I found this once:http://www.badboy.ro/articles/2005-07-23/index.phpI didn't have the chance to try it and might be a little complicated, but it looks interesting.
  15. Short answer (I have not tested the line, I just moved the image tags inside the value string and escaped the quotation marks): define('MODULE_PAYMENT_WEST_TEXT_EMAIL_FOOTER', "<img src=\"http://www.bhuratea.com/images/bhura_logo.gif\"><br><u><b>PAYMENT INSTRUCTIONS</u></b>" . "<br>" . '<b>You have two options when using Western Union</b>' . "<br><br>" . '<ul><li>Visit WesternUnion.com' . "<br>" . '<li>Select the Money Transfer Option and follow the on screen directions' . "<br>" . '<li>You can pay with a bank debit card or credit card' . "<br>" . '<li>Western Union will charge you a money transfer fee' . "<br>" . '<li>Send the amount of the total shown above</ul>' . "<br><br>" . '<b>Visit a local Western Union agency</b>' . "<br>" . '<ul><li>Fill out the necesarry Send Money form, ask agent if you need assistance' . "<br>" . '<li>They will require a valid ID' . "<br>" . '<li>You can pay with cash, a bank debit card or credit card' . "<br>" . '<li>Western Union will charge you a money transfer fee' . "<br>" . '<li>Send the amount of the total shown above</ul>' . "<br><br>" . 'Using either method, provide the following Receiver information:' . "<br><br>" . MODULE_PAYMENT_WEST_PAYTO. "<br><br>" . 'Once payment has been sent, please send an email to this address:' . MODULE_PAYMENT_WEST_EMAIL. "<br><br>" . 'Include your first and last name, your order number and the Money Transfer Control Number. Thanks!' ); Long answer:Of course there's still an error there!... The < character is not allowed in constant names. justsomeguy has explained what was wrong there already. He's right, you do not have yet the basic knowledge to make changes in a PHP file by yourself.Take a look here: http://www.php.net/define to see the syntax for define() and the example there. So you are defining a constant, which has a name and a value:define('NAME','VALUE');Both are strings. The first string is the name, the second string is the value. So any changes you want to make (images, <br> tags, everything) you have to make it in the second string. The first should be left untouched.When I said in the beginning that I have escaped the quotation marks, I meant this:"B.D. once said "I don't believe in endings, I only believe in new beginnings", that's what he said"It will not work because of the quotation marks inside the string, they must be escaped like this:"B.D. once said \"I don't believe in endings, I only believe in new beginnings\", that's what he said"If there are still some things unclear, just reply
  16. I don't understand. It still doesn't work with the corrected line?
  17. Try this line:<?phpdefine('MODULE_PAYMENT_WEST_TEXT_EMAIL_FOOTER', "PAYMENT INSTRUCTIONS" . "\n\n" . 'You have two options when using Western Union' . "\n\n" . '1. Visit WesternUnion.com' . "\n" . 'Select the Money Transfer Option and follow the on screen directions' . "\n" . 'You can pay with a bank debit card or credit card' . "\n" . 'Western Union will charge you a money transfer fee' . "\n" . 'Send the amount of the total shown above' . "\n\n" . 'Visit a local Western Union agency' . "\n" . 'Fill out the necesarry Send Money form, ask agent if you need assistance' . "\n" . 'They will require a valid ID' . "\n" . 'You can pay with cash, a bank debit card or credit card' . "\n" . 'Western Union will charge you a money transfer fee' . "\n" . 'Send the amount of the total shown above' . "\n\n" . 'Using either method, provide the following Receiver information:' . "\n\n" . MODULE_PAYMENT_WEST_PAYTO. "\n\n" . 'Once payment has been sent, please send an email to this address:' . MODULE_PAYMENT_WEST_EMAIL. "\n\n" . 'Include your first and last name, your order number and the Money Transfer Control Number. Thanks!' );?>Using a PHP editor with syntax color highlighting is very good in such situations.
  18. I don't really understand what the problem is. If you only want to change the links' texts with images, then replace the lines:define('PREV_ORDER', '<b><<Previous Order</b>');define('NEXT_ORDER', '<b>Next Order>></b>');with:define('PREV_ORDER', '<img src="imageyouwantforprevious.gif">');define('NEXT_ORDER', '<img src="imageyouwantfornext.gif">');
  19. I have found this in an offline JS documentation I have: The string '08' begins with 0 and there is no radix specified, JS will think that all what is after the first 0 should be an octal number. But there is no 8 in the octal system (only 0-7), so the function returns 0.The solution is:parseInt(temp,10)
  20. Sabin MunteanuMale, located in Oradea, Romania (so excuse my English from time to time), born on 21st August 1980.I finished the Medicine School last year, but I decided to follow my lifetime passion: programming. I work as a professional web programmer since October 2005.I consider myself advanced in HTML (not an expert though).In PHP I think I am at medium level, I hope I will reach the advanced level by the end of this year. Then I will probably become an expert in about 2 years (if I don't start learning ASP, or other complex stuff).
  21. JS error. Instead of:onmouseover="return addressMsg('Missy's Slideshow')"use:onmouseover="return addressMsg('Missy\'s Slideshow')"
  22. skym

    XML declaration

    Right, the echo might resolve the problem, but I wonder how did he get into this sort of problem. So I gave the ini file setting answer, just in case.
  23. I never had to use 'clear' yet, but here is how I understand it.Let's say you have: <img src='image.jpg' style='float: left;'>Lorem ipsum dolor sit amet, consectetur adipisicing elit,<div>sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div> Above, all the Lorem ipsum text, including the div, will be shown at the right of that image since the image floats on the text's left side. <img src='image.jpg' style='float: left;'>Lorem ipsum dolor sit amet, consectetur adipisicing elit,<div style='clear: both;'>sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div> Now the div will jump under the picture because it doesn't allow anything floating on either side of it.
  24. If you want to change the text itself (for example"abcd" to "efgh"), I don't think it's possible with CSS. CSS is used to set the appearence of the information, not the information.The only option I can think of is to actually use an image with the text, instead of the plain text, then you could use something like background-image: url(imagewithtext.gif);
×
×
  • Create New...