Jump to content

pquery

Members
  • Posts

    71
  • Joined

  • Last visited

    Never

Everything posted by pquery

  1. sorry, close or delete my post then, I've reposted in the HTML forum
  2. I have a function which makes an <ol> based on users selections. The function displays once on the page fine. I want the option to mail out the results and I'm trying to hide the second instance of the ul by calling the function a second time in either a hidden field, a text field or a text area (either of the second two enclosed by a hidden div). I've tried all three and can't seem to get any of them to work. <div id="profile"> <?php profiler(); ?> </div> <form action="craigmail.php" method="POST"> <input type="text" name="craigprofile" value="<?php profileTxt(); ?>"> </div> <p>would you like to send this as a response to a craig's list personal?</p> <input type="submit" value="Click Here" class="buttonSubmit" /> </form> here's the current piece of code that i'm using, but what seems to be happening is it hits the first closing bracket ">" in the code and then makes the rest of the list as normal anyone have any suggestions on how I can pass this through to my mailer page?
  3. I have a function which makes an <ol> based on users selections. The function displays once on the page fine. I want the option to mail out the results and I'm trying to hide the second instance of the ul by calling the function a second time in either a hidden field, a text field or a text area (either of the second two enclosed by a hidden div). I've tried all three and can't seem to get any of them to work. <div id="profile"> <?php profiler(); ?> </div> <form action="craigmail.php" method="POST"> <input type="text" name="craigprofile" value="<?php profileTxt(); ?>"> </div> <p>would you like to send this as a response to a craig's list personal?</p> <input type="submit" value="Click Here" class="buttonSubmit" /> </form> here's the current piece of code that i'm using, but what seems to be happening is it hits the first closing bracket ">" in the code and then makes the rest of the list as normal anyone have any suggestions on how I can pass this through to my mailer page?
  4. I write my PHP code in notepad++ which is a free download on sourceforge it color codes your classes, functions etc and your can use the +/- signs on the side to slide the functions that your not working on up or down out of the way, it also supports a number of other languages.
  5. I've actually found the db in Microsoft access format and I'm converting now. In case anyone else is looking I found it on about.com in the database section, and the data is from 2006. I'm still looking for the php function so that I don't have to sit here and write it from scratch (just to save some time) so if someone knows something please let me know. thanks.
  6. I just need a little help on where to look for a simple function I'd like to build into my application I'd like to put a simple mySQL db backend that holds zip codes and their corresponding cities, there has to be one of these availalbe for download somewhere right? I don't want lats or or longs just zip and corresponding cities. I'm sticking with the KISS rule (this is a free web tool and nothing is too complex on it) second where can I go to look for some help on the lookup function for this? Like I said I just want simple, you put your 5 digit zip code into the txt field and then I can have my js validator make sure that it's all numerical, and in a certain range of us zip codes, and then have the php do the look-up and return the $city,$state for the echo statement. nothing complex, I'm sure one if not many have done things like this already. But everytime I search for something it's doing area ranges based on lat/long tables or shipping tables. I'm just looking for SIMPLE. thanks
  7. I have actually solved this and I am going to post the solution for anyone else that runs into this issue... the problem wasn't in my initial onsubmit() statement at all, tather it was with the fact that in my validator code that on one of my check functions I had a statement that was using the same veriable names as the names of the dropdown lists that it was checking against each other. here is the original statement: // checking that max age isn't less then min age maxAge = document.profileMaker.elements.maxAge.value minAge = document.profileMaker.elements.minAge.value if (maxAge <= minAge) { alertMsg += "\nThe Minimum age can't be more then the max (Looking For)" } and the dropdown list(s) input lines only from the code <select size="1" name="minAge"> <select size="1" name="maxAge"> now here's the fix ~ notice how I put the n at the end of the variable names so that it works now in IE6 // checking that max age isn't less then min age maxAgen = document.profileMaker.elements.maxAge.value minAgen = document.profileMaker.elements.minAge.value if (maxAgen <= minAgen) { alertMsg += "\nThe Minimum age can't be more then the max (Looking For)" }
  8. Hmmm, I implimented you fix, but still got the same results... I got reaction from FF but no validation / reaction from IE 6 What's strange is that on this page I have a js which is running the tabber which shows the hidden divs so it's just this onsubmit function. thanks for your suggestion though. anyone else have any suggestions?
  9. Don't go to myspace, but is it like a submodal effect? can you take a screen shot before and after and post it and then maybe we can help
  10. thanks, I've hidden the list of this directory especially since I'm already working on a second version with enhancements, while getting some people to test the first version. on the issue of how could you prevent a measure like that, and what kind of damage could that do?
  11. I'm going to agree with dbrimlow here and say break out of the frames before you your really get started. Besides for SEO purposes you're going to get knocked down for a frameset. Also in your navbar2.html A:link {text-decoration: none; font-weight: bold; color: 99CC00;} A:visited {text-decoration: none; font-weight: bold; color: 99CC00;} A:active {text-decoration: none; font-weight: bold; color: 99CC00;} A:hover {text-decoration: none; font-size:14; font-weight: bold; color: white;} p {text-decoration: underline; color: white; font-size:18;font-weight: bold;} why are you changing the font size so that the menu seems to be bouncing as you hover over it? It's just not good style practices these days. Keep a consistant font size and either change color or place a background color on the hover state. Just a few tips to keep your site looking more professional, especially if your looking to attract advertisers / revenue streams at a later point
  12. thanks, I have a thread in the js form about some issues I'm having with IE not doing any validation at all. I'm just amazed how much work I'm putting into this thing to make it idiot proof, lol from previous software I've made I've realised that you assume nothing and that people almost never read directions.
  13. Hi, I' wrote this validation script for my new program which I was getting people to test in one of the other forum, but it seems like the validation isn't working on IE 6 for some reason. In FF it's working fine and I haven't had a chance to test in IE 7 just yet but I'm just not sure why if my form method is name="profileMaker" id="profileMaker" action="###" onsubmit="return validateForm()" method="post" and my js function is called function validateForm() { with (document.profileMaker) why it would just skip over everything in IE, there's other onClick actions on the page which are working fine. ???any help is appreciated. http://freeprofile.pquery.com
  14. Here's your fix: in your stylesheet change your #navcontainer to be the following: #navcontainer { width:203px; vertical-align:top; margin-top:-12px; } then add this to your head tag: <!--[if IE]> <style type="text/css" media="screen"> #navcontainer { margin-top:0; } </style> <![endif]-->
  15. I've fixed the error logging issue what I seem to be having a problem with now is the js validation in IE 6 ~ and it's working fine in FF. Could somebody test it in IE 7 for me and safari? I have both at work but won't be there for another few days to test on my lunch break. Thanks
  16. Full Path Disclosure: http://www.pquery.com/profile/profile2.php do I do that in the apache config or in the script itself? I've never been the best server guy - thanks for the tip though I didn't even think of the full path being exposed if the script hitting an error
  17. are you streaming anything, I tested with the winamp link and it could never seem to connect
  18. I need some testers for my online dating profile maker, to make sure that there arn't errors being produced currently [there's one I know of, because of a javascript validation on the checkboxes for the indoor and outdoor activities which I'm still looking for a solution for] -- so please check at least on indoor and one outdoor activity on the hobbies tab. Please let me know if the verbage kicked out seems off at all or if you see any holder lines being kicked out to go through the whole seniaro the first time only takes less then 2 mins from my friends which I had initially test it. thanks for your help. http://www.pquery.com/profile/maker.php
  19. Thanks for your quick reply, and for showing me some simplification of my routine. I've implemented your solution, but I'm still getting the same result for the flavor function of no echo's, and the single choice routine stopped working. So I had to change the order a little so that foreach was at the top so the $f variable was available on that last elseif statement. I also took out the extra unused code. I'll try and explain it better: if the flavors of the array are: flavors("cheese","bbq","ketchup","mustard"), and you checked all four flavors then I was trying to get the out put to echo - mustard, ketchup, bbq, or cheese (since it was counting down) The last time I was getting output I was getting mustard, ketchup, bbq, cheese or cheese if all four were selected. Hence the last item selected was being repeated twice. Once in the function flavors () { global $flavor; $i = 3; // counter for the number of checkboxes minus 1 for the array $c = count($flavor);// counter foreach($flavor as $f) { if ($c !=1) { if ($i > 0) // I think this is where some of the problem is { if ($flavor[$i] != NULL) { echo ("$f, "); $c= $c-1; $i = $i-1; } }else{ echo ("or $f "); } }elseif ($c == 1){ echo ("$f only please"); //echo ("<br> i= $i"); //echo ("<br> c= $c"); } } }
  20. Hi, I'm having problem with a conditional while loop that looks at each of the checkbox options and then echo's out a statement. The problem I'm having is with the last item when the counter gets down to 1. I first counted all the items checked and then ran the routine the number of times the counter was set for, subtracting 1 from the counter each time. I trying to get it to do something different on the last array item where $flavor[0] In this function I have 4 items in the list to check and checks against if there is only 1 item selected (this part works fine). If you select more then one item, it was kicking out the last selection twice or it was starting to run into a fatal error (Fatal error: Maximum execution time of 30 seconds exceeded in on line 158) before I commented out a loop you'll see in my code below. Now it's just not displaying anything if there's more then one checkbox selected I need this routine for a few other functions in my program so your help is greatly appreciated. here is the PHP function flavors () { global $flavor; $i = 3; // counter for the number of checkboxes minus 1 for the array $c = 0; // counter foreach($flavor as $f) { $c++; } if ($c !=1) { //while ($c > 1) //{ foreach($flavor as $f) { if ($flavor[$i] != NULL) { echo ("$f, "); $c= $c-1; $i = $i-1; } } //} if ($i <= 0) { echo ("or $f "); return; } } elseif ($c == 1) { echo ("$f only please"); //echo ("<br> i= $i"); //echo ("<br> c= $c"); } } thanks again
×
×
  • 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.