Jump to content

JustLikeIcarus

Members
  • Posts

    430
  • Joined

  • Last visited

Everything posted by JustLikeIcarus

  1. Just thought I would say hello to everyone. I recently started posting here in an effort to fight off my boredom haha.. It keeps me pretty entertained. Is it sad that I find it fun? Hope not...
  2. MooTools is not constantly watching the dom for elements with the editable class. It reads it in when it loads so it doesnt see your new/updated elements. You need to look for a MooTools plugin like the jQuery livequery plugin which should fix your issue. The other solution would be to run the MooTools function after the table is added to the dom each time.
  3. Well using jQuery it would be something like $('#id_of_select').change(function(){ if($(this).val() == 2){ $(this).insertAfter('<input type="text" name="somethingElse">'); } }); Thats just off the top of my head but i think its what you want.
  4. OK found your issue. .submit { font:bold 0.95em arial, sans-serif; border:none; height: 25px; background-color: #63D1F4; } } <-- Whats that for? .floatleft { float:left; padding:0px 5px 5px 5px; }
  5. Seems to work fine using just the two lines of css you mentioned. Maybe your css file has something thats overriding your float? Post your css if you can.
  6. can you post the actual html getting generated for that section? Cant be sure why it isnt working without more info.
  7. Can you verify that the -f is working by sending an email to yourself with From set to your email then after the -f add an x to the front of your email address. Then see if the email you get has x<your emal> as its Envelope Sender address.
  8. no they should be in the same quotes. It shouldn't be changing the From but should change the Envelope from address. Try sending something basic for testing. may make the testing easier.
  9. Hahaha we were getting there.
  10. Yes after the -f needs to be the email address of your domain. Currently your "From" value is the email of the person submitting this form which is what causes this to be flagged as spam sich it doesnt match your domain. Make sense?
  11. Ok ive never use OLE COM objects before. According to the spec "value" does contain the value in seems to be what should be used in the if statement. See if this gives you an error if(isset($rs->Fields('Address')->value))...
  12. Im thinking that $rs->Fields('Address') is an object, $rs->Fields('Address')->value being what needs to be tested or maybe try if(sizeof($rs->Fields('Address')) != 0)...
  13. Sorry I had that wrong the "-f enquiry@domain" needs to be your domain.
  14. Also try using a switch case instead of multiple if's exit's. May make things easier.
  15. Some more changes will need to be made besides what I gave u an example of. All of you "id" attributes need to be unique.
  16. mail("[email protected]",$subject,$sendemail,$mailheaders, '[email protected]'); Assuming companyx.co.uk is your domain.
  17. First problem is that you cant have multiple elements on a page with the same id. Second, your select box "quantity" has nothing to tell which item the quantity is for. Change the id of your elements to something unique like changing it to <select name="quantity" id="quantity_<?=$theid?>" > <option value="1">1</option> <option value="5">5</option> <option value="10">10</option> <option value="25">25</option> <option value="50">50</option> <option value="100">100</option> </select> Then change your js to do document.getElementById('quantity' + myid).value;
  18. DavidAM is correct. Setting a z-index on the div with the form will make it accessible.
  19. Well simplest example is for you to just take your current css file and change its extension to .php and add <?php header("Content-type: text/css"); ?> To the beginning of it. Then change the html that calls it reflect the new file name. <link rel="stylesheet" type="text/css" media="screen" href="style.php"> Once youve done that you can add whatever else you want in the new file.
  20. PHP Frameworks usually provide this. I use Kohana kohanaphp.com which does it well. v2.3.4 has a nice hook system. v3.0 Does it a bit differently but it works well.
  21. Yeah just have a php file that ouputs css and use it instead of the .css file. Make sure your sending the right header.
  22. If im understanding correctly I think you need to use an OUTER JOIN.
  23. Per the php manual:
  24. Well it depends... If he wants each question followed by its answers, Im thinking its best to loop through the questions fetching each ones answers and printing them. Or possibly pull back all questions into an array like $arr['question'][1] = ... and $arr['answers'][1][] ... If your going to do everything in one query Im thinking you would want to pull back question_id, question, answer then print out a question only once then answers untill you hit a different question id... What are your thoughts?
  25. @fenway very true. It isn't the optimal solution. The best way is most likely what the OP already has.
×
×
  • 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.