Jump to content

knowram

Members
  • Posts

    226
  • Joined

  • Last visited

Everything posted by knowram

  1. so the time was off by an hour server side thanks for the help
  2. All I want to do is print the current time and date on a site. the php functions that i have found don't include daylight savings time when printing time so it is an hour off. There must be a simple way to do this. I am just looking in all the wrong places. Thanks
  3. knowram

    date()

    from what I have been able to tell you are suggesting using the putenv function to set the time-zone. That makes sense but what if the site is used in more then one time-zone?
  4. knowram

    date()

    Why is it not printing the time with regards to daylight savings time? it is 10pm and [code] echo date("g:i a"); [/code] is saying that it is 11pm
  5. knowram

    Arrays

    Ok there must be some way to just take a given variable out of an array no mater where in that array the variable is. I have searched php.net for some time and can only find functions to split the array in two or take variables of the beginning or end of the array. thanks for the help
  6. Is there a function that can be used to determine if a variable ends or begins with specific caricatures? I remember finding some way of doing this a while ago but don't remember. thanks for any help
  7. Is there any way to set parameters in the print dialog box using the self.print() function. I would like to be able to set the number of copies that are going to print. It would also be nice to be able to do this and send to page directly to the printer with out showing the print dialog box but that is not necessary. Thanks for any help.
  8. Great idea but I am passing information to the page through the link so I don't think i can use iframes. unless there is a way to pass information to an ifram with the link.
  9. is there anyway to use a link or button to close the window at that point?
  10. I have a page that reloads itself every time you hit a different submit button. I am trying to put a button on the bottom of the page that the user can use to close the window when they are done. Here is the code that I am using so fare [code]         <input type="button" value="Close Window" onClick="self.close();" > [/code] this works great the first time the page loads if that is the first thing you click. But if you use a different button which reloads the page the close window button will no longer work. anyone know how to fix this problem?
  11. knowram

    Button looks

    I have been working some time on this site which is based on buttons. My problem is that I am a mac person and love the way the site looks on my computer. But the site is going to be used mainly on pc's :(. When I am on the site on my mac all the submit buttons are nice elongated ovals with some space between them. They even have some shading to make them look 3D. Nice. If you are using a pc the submit buttons are gray, flat squares smashed together. Nothing nice about it at all. So my question is, is there any way to make the submit buttons look like they do on my mac on the pc's? I can't use images because the labels are generated from a database. The only other option I know of is CSS stiles but I don't know how to use them. If this is possible it would make my day.
  12. I have worked around the problem so while not solved it is not needed any more. thank you all for your help
  13. I guess what I trying to do is not possible. Trying to imbed something into the value of a checkbox so that it will recall a variable on the next page when that checkbox value is recalled. Anyway unless anyone has a different idea how to do this I will come up with something else. thanks everyone. jacob
  14. If echo $checkbox5; returns $Improve. is there something that I do to recall $Improve. something like ${$checkbox5};
  15. lets see if i can explain. On the form page there is a checkbox next to this text. If no improvement in "Text field" hours, you must be re-evaluated. there is a check box there because they may not always need to use this line. when it is read on the print page I have a if statement that checks to see if the checkbox has been checked and if so I would like it to write if no improvement in "what ever they put in the text box on the previous page" hours, you must be re-evaluated. And I need all that to be stored in variables from the form page. So if there is a what to splice to variables together at a point that would work or something like that. I don't know I am running out of ideas. let me know if any of my explanations don't make sense.
  16. The problem with that is that then only the hours that are typed into the text box are passed to the second page. And the reason that i am doing it this what is because depending on what happens earlier on the site the check box might be different. Just tell me that what I am trying to do is impossible and I will give up.
  17. maybe it will help if i give you more of the code Here is the relevant code from the form page which is a .php page [code] <html>     <head>         <title>Discharge</title>         <form method=post action="../Print.php">     </head> <body> <table width="800" border="1" cellspacing="0" cellpadding="0"> <tr>     <td width="20"><input type="checkbox" name="checkbox5" value="'If no imiprovement in '<?=$Improve?>' hours, you must be re-evaluated in the Emergency Room or by your primary care doctor.'">        </td>     <td>If no imiprovement in <input type="text" name="Improve" size="10"> hours, you must be re-evaluated.</td> </tr> </table> <input type="submit" name="Print" value="Print"> [/code] This is what i have on the Print.php page [code] <?php echo $checkbox5; ?> [/code] And this is what i get on the Print.php page. 'If no imiprovement in '' hours, you must be re-evaluated.' do you see what i am trying to do? If it is not possible just let me know and I will try to come up with another way of doing it.
  18. So you are saying that both the form and the display page need to have a php extension. Okay I under stand that. The problem with that is that because the variable $Improve is established on the same page as the checkbox. there is nothing for the code <?=$Improve?> that is in the checkbox value to pull in. so it just puts a blank space in. What I am trying to do is put something in the checkbox value that will retrieve that variable $Improve on the next page after it has been established. dose that make sense. And I don't know if this is even posible.
  19. Which page are you talking about there are 2 pages involve here. A form page that has a html extension. And a display page that has a php extension.
  20. I replaced <?=$Improve?> with <?php var_dump($Improve); ?> on the html form page. and when I hit submit to get to the php page where I am trying to recall these variables there was still nothing where <?php var_dump($Improve); ?> was.
  21. yeah that makes sense I know that $Improve is being passed properly because i can echo $Improve and get what I am looking for. I am just trying to imbed that into the checkbox so that all i have to do is echo the checkbox value and get both. I was asking if there is a php function that allows you to do what I am trying to do. Because if there is I can make the form page a php page because right now it is just a html page. the problem seems to be when the information is submitted form the html form page to the php page the <?=$Improve?> is not carried over. dose that make sense at all?
  22. are you saying both pages need to be php or just the second page that is reading the variables? I have tried it with both pages having a .php extension and also with the first page with the check box and text box as a html file and then going to a php file.
  23. That is what i was thinking would work but i could not remember the stripslashes() command. However it did not seem to work. now i am getting. 'If no imiprovement in '' hours, you must be re-evaluated' Would it be better if i was going from a php page to another php page?
  24. Once again i am trying to do things that most don't do. I am trying to send a php variable from an html page imbedded in a check box value so that when it gets to the next page that is a php page it is read as a variable. Here is the code that i am trying so far. On the HTML page <input type="checkbox" name="checkbox5" value="'If no imiprovement in '.$Improve.' hours, you must be re-evaluated'"><input type="text" name="Improve" size="10"> An on the just a simple echo $checkbox5; on the php page. This is what i get: \'If no imiprovement in \'.$Improve.\' hours, you must be re-evaluated\' dose anyone have any ideas?
  25. I did find that but I can't seem to figure out how to use it. This is what i am doing. $x = array (testing, dog, cat, testing2); $newx = unset($x['testing2']); That dose not seem to do anything.
×
×
  • 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.