[PHP] date processing needed in form
Hello - I need to create a form that allows the user to select a Month, Day and Year. I am also new to PHP and am wondering if there is a way for me to display the contents of the Select list box (for the Day) based on the Month that is selected (and Year), so that the valid number of days for the month (& year?) displays. For all of our other forms, we use CGI to handle our standard forms validation, and was hoping to handle more complex validation within PHP prior to sending the entire contents of my form to our standard CGI validation routine. I know that I could use the Checkdate function once the entire date is selected, but thought there might be an easier/more efficient way of handling this and also not sure how to reference Checkdate prior to Submitting my form to the CGI routine. I also was not sure if this was something that is handled easier using Javascript? Any help/examples, etc. would be greatly appreciated! Thanks!! Sue -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Best way to handle PREVIOUS and NEXT processing of database records retrieved
I am retrieving records from a MySQL database and need to just display each record one after the other on a page. I only want to display a maximum of 25 records per page though, and am wondering if there is a way to handle this easily within PHP? I'd like to use something like NEXT and PREVIOUS as links to go back and forth from each of the pages if there is more than 1 page of data to display. Any examples/ideas would be greatly appreciated. Thanks in advance! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] GetImageSize problem
I have a bunch of images living on one ISP's server which I want to use on another page on another ISP's server, with GetImageSize. I RTFM, and see "The filename needs to be either relative to the current document, or an absolute filesystem path. Thus absolute URL paths will not work." which is absolutely correct - I get an error msg "cannot open file". $DOCUMENT_ROOT is obviously no use to me - does anyone know any way round this? TIA, Sue -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] GetImageSize problem
Thanks Rom - I can get the pics with an img src tag, which is why I assumed that GetImageSize would also work - but now I'm told it only works on the local machine, so I guess I'll have to live with text jumping about while pics download. :( Romulo Roberto Pereira wrote: > > Hello! > > First - some ISP block you from get files from their server by a httpd > request (that is what php does... I think!). To be sure if this is set or > not, in the other ISP (not the one that the images are) write a simple html > like this: > > loading images between servers > > http://Domain/ImagesDir/ImagesName.gif"> > > > In "http://Domain/ImagesDir/ImagesName.gif" be sure to put the correct > domain and location of the image. > > This should show the image... If not you could have two problems: the link > is wrong or the filter is set. > > Imagine this - I have a web site in an ISP with my domain like: > http://www.mydomain.com and all the paths are gting the images from a free > server like geocities.com so I don;t expend money on buying large amounts of > bandwith for my site... If you think this way you know why they do that. > > if this works, just use thi path "http://Domain/ImagesDir/ImagesName.gif" in > all your scripts for getimagesize... > > I expect that this helps. > > Rom > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Simple question!!!
I'm sure there are more officially correct ways of doing it, but I've always echoed /body /html before the die happens. Sue - Original Message - From: Ricardo D'Aguiar <[EMAIL PROTECTED]> > Imagine the following script: > > > Some Title > > $var = 1; > if ($var == 1) { > die ("I'm dead"); > } > echo "I'm alive"; > ?> > > > > If I try to execute via Internet Explorer ("5.x") apparently every thing > works fine. > It shows the string "I'm dead". > > But if I use the Netscape 4.7x, I get a blank screen. > When I view the Source Code ("HTML code in Netscape") it shows: > > > Some Title > > I'm dead > > Netscape can't render the page if its missing the and > tags in the end. > I already used 'return' end 'exit' functions but with the same result. > > There is some configuration parameter to the PHP server to send the rest > of HTML code after exit the script or workaround? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] connecting to oracle 9i
I am running php 5.0 apache 2.0 oracle 9i on a windows platform receiving the following error: Fatal error: Call to undefined function oci_connect() in C:\Program Files\Apache Group\Apache2\htdocs\Sue\testoci.php on line 3 I edited the php.ini I uncommenting the extension=php_oci8.dll (removed ;) and changed the extension_dir = "C:/php/ext" I stopped and stopped apache and it still get the same error can you please help or direct me to someone that can? Thanks! Happy New Year!