Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Ruggie

    Internet explorer 8 cannot print on 64 bit version

    ...signs) and then hit enter. Windows explorer should open up to your local temp folder. Tap your 'Alt' key so your Text menus show up at the top of that window and click 'File', then go down to 'New' then 'Folder'. Give it the name 'Low'. *Your account will need administrator privileges to do...
  2. Ruggie

    multiple submit buttons from xml

    Ignore my second line on that last post, I ran a few more than two searches. :)
  3. Ruggie

    multiple submit buttons from xml

    Thats kinda my point. I just ran a search in two windows, one with 4 adults 4 kids, the second with 0 adults 0 kids. Now under the same listing I get two different prices.. Whitewater Hotel 2 Queen ... 0adults0kids - 154.00 4adults4kids - 204.00 0adults4kids - 154.00 1adults0kids - 129.00...
  4. Ruggie

    multiple submit buttons from xml

    Another thing I just noticed when looking at the output code, you have php being drawn as commented out html.. <!-- Sets selectedRoom variable in the form below. Calls function on the button click and after the selectedRoom form field's value is set it submits the form. //selectedRoom value...
  5. Ruggie

    multiple submit buttons from xml

    You get a rate, but go back and rebook with different options. I got the same rate and sometimes got a really bogus rate. For example it said at the top my rate was 159 or something and below my final rate was 800. I ran all tests for a single day, not two days. Don't know if that changes the...
  6. Ruggie

    multiple submit buttons from xml

    ...looking at the source code of a generated page I see this: <input type=hidden name=rowid0 value='195.00~RAC~Lodging Only-Stillwater Studio *Rack Sws~DST~Stillwater Studio Queen Wall Bed Or Sofa Bed *Stillwater Condominiums Are Affordable And Convenient. Walk To The Mountain Mall...
  7. Ruggie

    Formatting question

    Another thing to note, does the _p function return a value or does it output the text directly to the buffer/user ? If it outputs the text directly, remove the = sign before you call it. You use that to echo results, example: <? $myvar = " world!"; ?> <html> Hello <?=$myvar?>! </html> Result...
  8. Ruggie

    Write to Debug file globally

    Yes it would timeout, but if that happens, your page and any following code times out as well! I don't know about others, but I would rather have the file write be dropped and serve the user the rest of the page before the time_limit kicks in.
  9. Ruggie

    Preventing duplicate form submissions

    jpadie, I never thought about logging all sql commands to a file or another database, that is such a simple idea and a great one! Just wanted to say thanks for mentioning it. :)
  10. Ruggie

    password encryption

    I agree with TechieMicheal about the JavaScript thing, a lot of the programming I do is viewed by hospital networks, most of them use proxy servers to strip any kind of client-side script tags. You can never trust the client to handle key operations. My login pages are all on the SSL side of the...
  11. Ruggie

    Write to Debug file globally

    I'm used to working on Windows servers in which the lock happens automatically. (might have been a setting I changed, can't remember)(One of my major scripts writes to a lot of database 'files', not my first choice but it was the only way to solve a few cross-network issues when our data-center...
  12. Ruggie

    Preventing duplicate form submissions

    It depends on how your using the database, if you have a unique field or key field that you are populating (not auto-increment) you can run a SELECT before the INSERT to determine if the record is already there, and if it is, then maybe the user is trying to change something, so switch the...
  13. Ruggie

    Write to Debug file globally

    This is what I do. I use a class to handle all debugging. When I'm developing, changing something, or hunting for a problem, I turn debugging on. But normally it is turned off. $debug = true; || $debug = false; in a header file. This allows me to save processing time by turning it off...
  14. Ruggie

    Write to Debug file globally

    If one of those files (settings.php or LibOfFuncs.php) is included by all the other files then just create a function in there. Then any time you want to write to the log just call the function. function Log($msg){ $fp = fopen("log.txt","a+"); fwrite($fp, $msg."\r\n"); fclose($fp); }...
  15. Ruggie

    include_once

    Also if your trying something like this... <? $myvar="This variable is set"; ?> <? include_once('settings.php'); function output(){ echo $myvar; // Fails undefined variable } output(); // Will output an error message echo $myvar; // Outputs, This variable is set // A way around this is...
  16. Ruggie

    How do I include html in IF statement?

    Another method you might try: <?php if (is_page('2')) { ?> <div style="border: 1px solid #000000;">Using this method allows you to inject HTML without escaping " or ' marks as you would with the 'echo' or 'print' commands.</div> <? } else { ?> <div>However, the code does...
  17. Ruggie

    Square thumbnail php

    ...// Width is larger then height $w = number_format($maxWidth_N_Height,0,"",""); $h = number_format((($size[1] / $size[0]) * $maxWidth_N_Height), 0, "", ""); }else if ($size[1] > $size[0]){ // Height is larger then width $h =...
  18. Ruggie

    File Generator

    ...$fileSizes = array(); // in bytes // Build Array's for($i=$start_at_megs;$i<=$end_at_megs;$i++){ $fileNames[] = $i."MB"; $fileSizes[] = $i*1024*1024; } echo "<pre>\r\n\r\n";$output = ""; if (count($fileNames) == count($fileSizes)){ $count = count($fileNames); for($i=0;$i<$count;$i++){...
  19. Ruggie

    Setting a wallpaper

    I understand what your saying but the main problem I was having was not being able to include shlobj.h so I could use the interface IActiveDesktop. The MSDN says IActiveDesktop requires shlobj.h Unless your suggesting another method? If so please explain a bit more. Thank you.
  20. Ruggie

    Setting a wallpaper

    I'm attempting to set a JPG desktop wallpaper via the IActiveDesktop interface but every time I include shlobj.h I get a bunch of "Multiple declaration" errors and the interface is not available without it. Anyone have suggestions on another way to do this? I know you can set bmp images via...

Part and Inventory Search

Back
Top