[PHP] newbie with php/HTML question

2008-04-27 Thread Rod Clay

I've written my php script to accept either:

1) url parameters, when first invoked (so in this case I'm getting 
variables out of the $_GET global array), but then I create a form with 
method=PUT and, when this form is submitted and comes back into this 
same php script, I'm looking for


2) variables in the $_PUT global array

However, I tested this just now and, for some reason I can't fathom, 
though the form I create has method=PUT, when it is submitted and comes 
back to my php script, $_SERVER['REQUEST_METHOD'] still contains GET.


Am I missing something fairly obvious here (quite possible!)?

Once my php script is invoked with parameters in the url (i.e., implicit 
GET method), am I not able to create a form with method=PUT and have 
this form come back into my php script with values in the $_PUT global 
array??


Thanks for any help anyone can give me!  I'm stumped!

Rod Clay
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] newbie with php/HTML question

2008-04-27 Thread Stut

On 27 Apr 2008, at 22:40, Rod Clay wrote:

I've written my php script to accept either:

1) url parameters, when first invoked (so in this case I'm getting  
variables out of the $_GET global array), but then I create a form  
with method=PUT and, when this form is submitted and comes back into  
this same php script, I'm looking for


2) variables in the $_PUT global array

However, I tested this just now and, for some reason I can't fathom,  
though the form I create has method=PUT, when it is submitted and  
comes back to my php script, $_SERVER['REQUEST_METHOD'] still  
contains GET.


Am I missing something fairly obvious here (quite possible!)?

Once my php script is invoked with parameters in the url (i.e.,  
implicit GET method), am I not able to create a form with method=PUT  
and have this form come back into my php script with values in the  
$_PUT global array??


Thanks for any help anyone can give me!  I'm stumped!


You want POST not PUT. Nearly all browsers don't currently support PUT  
requests.


-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] newbie with php/HTML question

2008-04-27 Thread Rod Clay
Wow, thanks.  I can't believe I made this mistake.  This group is 
sooo helpful.  I could probably have looked at this another 10 hours 
and not seen this.  Thanks again.


Also, I'd like to apologize for the double post.  I posted the first 
with an email address different from the one I subscribed to the list 
with and I thought it wouldn't be accepted, so posted the second with 
the correct email address.  Surprisingly, they both posted!  Not sure 
how this happened.


Stut wrote:

On 27 Apr 2008, at 22:40, Rod Clay wrote:

I've written my php script to accept either:

1) url parameters, when first invoked (so in this case I'm getting 
variables out of the $_GET global array), but then I create a form 
with method=PUT and, when this form is submitted and comes back into 
this same php script, I'm looking for


2) variables in the $_PUT global array

However, I tested this just now and, for some reason I can't fathom, 
though the form I create has method=PUT, when it is submitted and 
comes back to my php script, $_SERVER['REQUEST_METHOD'] still 
contains GET.


Am I missing something fairly obvious here (quite possible!)?

Once my php script is invoked with parameters in the url (i.e., 
implicit GET method), am I not able to create a form with method=PUT 
and have this form come back into my php script with values in the 
$_PUT global array??


Thanks for any help anyone can give me!  I'm stumped!


You want POST not PUT. Nearly all browsers don't currently support PUT 
requests.


-Stut



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HTML Question?

2006-01-31 Thread William Stokes
Those aren't tables

Doesn't matter... (to me:)


Richard Lynch [EMAIL PROTECTED] kirjoitti 
viestissä:[EMAIL PROTECTED]
 On Thu, January 26, 2006 11:35 am, William Stokes wrote:
 This is totally HTML question but I had to post cause I can't get this
 one
 to work myself

 How to print tables to a page so that they are placed side by side
 horizontally as long as there is screen width left and then continue
 to
 second row below? Like in many image galleries where thumpnails are
 dumped
 to screen and the lines of thumpnails scale dynamically according to
 screen
 widht.

 I need to dump my thumpnails to screen and add some image info below
 every
 thumpnail and I want to take advantage of the whole screen widht.

 Those aren't tables, that's CSS, almost for sure...

 -- 
 Like Music?
 http://l-i-e.com/artists.htm
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] HTML Question?

2006-01-26 Thread William Stokes
Hello,

This is totally HTML question but I had to post cause I can't get this one 
to work myself

How to print tables to a page so that they are placed side by side 
horizontally as long as there is screen width left and then continue to 
second row below? Like in many image galleries where thumpnails are dumped 
to screen and the lines of thumpnails scale dynamically according to screen 
widht.

I need to dump my thumpnails to screen and add some image info below every 
thumpnail and I want to take advantage of the whole screen widht.

Thanks
-Will

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HTML Question?

2006-01-26 Thread David Grant
William,

William Stokes wrote:
 How to print tables to a page so that they are placed side by side 
 horizontally as long as there is screen width left and then continue to 
 second row below? Like in many image galleries where thumpnails are dumped 
 to screen and the lines of thumpnails scale dynamically according to screen 
 widht.
 
 I need to dump my thumpnails to screen and add some image info below every 
 thumpnail and I want to take advantage of the whole screen widht.

http://www.alistapart.com/articles/practicalcss/

David
-- 
David Grant
http://www.grant.org.uk/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HTML Question?

2006-01-26 Thread William Stokes
Jawohl :)

David Grant [EMAIL PROTECTED] kirjoitti 
viestissä:[EMAIL PROTECTED]
 William,

 William Stokes wrote:
 How to print tables to a page so that they are placed side by side
 horizontally as long as there is screen width left and then continue to
 second row below? Like in many image galleries where thumpnails are 
 dumped
 to screen and the lines of thumpnails scale dynamically according to 
 screen
 widht.

 I need to dump my thumpnails to screen and add some image info below 
 every
 thumpnail and I want to take advantage of the whole screen widht.

 http://www.alistapart.com/articles/practicalcss/

 David
 -- 
 David Grant
 http://www.grant.org.uk/ 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HTML Question?

2006-01-26 Thread Richard Lynch
On Thu, January 26, 2006 11:35 am, William Stokes wrote:
 This is totally HTML question but I had to post cause I can't get this
 one
 to work myself

 How to print tables to a page so that they are placed side by side
 horizontally as long as there is screen width left and then continue
 to
 second row below? Like in many image galleries where thumpnails are
 dumped
 to screen and the lines of thumpnails scale dynamically according to
 screen
 widht.

 I need to dump my thumpnails to screen and add some image info below
 every
 thumpnail and I want to take advantage of the whole screen widht.

Those aren't tables, that's CSS, almost for sure...

-- 
Like Music?
http://l-i-e.com/artists.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP/HTML Question

2003-07-17 Thread Nick Couchman
I have a quick question about PHP and HTML.  I have a page that is 
supposed to update the status of hosts by pinging each host and 
displaying the result.  I would like to get the page to the point that I 
can have something (either PHP or JavaScript or the like) ping every 10 
seconds or so and update the page (I have text boxes for the status) 
WITHOUT reloading it.  Does anyone know if this is possible with PHP? 
Or does anyone know of another way I could do it?  JavaScript (at least 
any of it that I've seen) doesn't have a function to run a command on 
the server (which makes sense, since it is mainly client-side), and I 
don't know about CGI.

Thanks,
Nick
--
You can't make a difference until you are willing to be different!
--
Nick Couchman
SEAKR Engineering, Inc.
6221 South Racine Circle
Centennial, CO 80111
Direct: (303) 784-7724
Main: (303) 790-8499
Fax: (303) 790-8720


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] PHP/HTML Question

2003-07-17 Thread Jay Blanchard
[snip]
I have a quick question about PHP and HTML.  I have a page that is 
supposed to update the status of hosts by pinging each host and 
displaying the result.  I would like to get the page to the point that I

can have something (either PHP or JavaScript or the like) ping every 10 
seconds or so and update the page (I have text boxes for the status) 
WITHOUT reloading it.  Does anyone know if this is possible with PHP? 
 Or does anyone know of another way I could do it?  JavaScript (at least

any of it that I've seen) doesn't have a function to run a command on 
the server (which makes sense, since it is mainly client-side), and I 
don't know about CGI.
[/snip]

Sounds like a job for sockets or curl, but there would have to be a
reload.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP/HTML Question

2003-07-17 Thread Ray Hunter

 I have a quick question about PHP and HTML.  I have a page that is 
 supposed to update the status of hosts by pinging each host and 
 displaying the result.  I would like to get the page to the point that I 
 can have something (either PHP or JavaScript or the like) ping every 10 
 seconds or so and update the page (I have text boxes for the status) 
 WITHOUT reloading it.  Does anyone know if this is possible with PHP? 
  Or does anyone know of another way I could do it?  JavaScript (at least 
 any of it that I've seen) doesn't have a function to run a command on 
 the server (which makes sense, since it is mainly client-side), and I 
 don't know about CGI.

You will need to do a reload of the page so that you can get information
from the server to the client via the web. Now you can also write a
server-client application that allows the server and client to talk via
connects (sockets) however, this is a very complex subject and might be
a huge overkill for what u are trying to accomplish.

Using javascript to reload the page every 10 minutes might be what you
are looking for.

--
BigDog


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP/HTML Question

2003-07-17 Thread Nick Couchman
Ray Hunter wrote:

I have a quick question about PHP and HTML.  I have a page that is 
supposed to update the status of hosts by pinging each host and 
displaying the result.  I would like to get the page to the point that I 
can have something (either PHP or JavaScript or the like) ping every 10 
seconds or so and update the page (I have text boxes for the status) 
WITHOUT reloading it.  Does anyone know if this is possible with PHP? 
Or does anyone know of another way I could do it?  JavaScript (at least 
any of it that I've seen) doesn't have a function to run a command on 
the server (which makes sense, since it is mainly client-side), and I 
don't know about CGI.
   

You will need to do a reload of the page so that you can get information
from the server to the client via the web. Now you can also write a
server-client application that allows the server and client to talk via
connects (sockets) however, this is a very complex subject and might be
a huge overkill for what u are trying to accomplish.
Using javascript to reload the page every 10 minutes might be what you
are looking for.
--
BigDog
 

Thanks, that's all I needed to know.  It sounds like from what Jay 
Blanchard said you need a reload with sockets, anyway, and yes, that 
would probably be overkill.

Thanks,
Nick
--
You can't make a difference until you are willing to be different!
--
Nick Couchman
SEAKR Engineering, Inc.
6221 South Racine Circle
Centennial, CO 80111
Direct: (303) 784-7724
Main: (303) 790-8499
Fax: (303) 790-8720


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP/HTML Question

2003-07-17 Thread Curt Zirzow
Nick Couchman [EMAIL PROTECTED] wrote:
 I have a quick question about PHP and HTML.  I have a page that is 
 supposed to update the status of hosts by pinging each host and 
 displaying the result.  I would like to get the page to the point that I 
 can have something (either PHP or JavaScript or the like) ping every 10 
 seconds or so and update the page (I have text boxes for the status) 
 WITHOUT reloading it.  Does anyone know if this is possible with PHP? 
 Or does anyone know of another way I could do it?  JavaScript (at least 
 any of it that I've seen) doesn't have a function to run a command on 
 the server (which makes sense, since it is mainly client-side), and I 
 don't know about CGI.

kinda need more details. but you can most likely do it with javascript
to update the textbox.

Curt.
-- 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP/HTML Question

2003-07-17 Thread John Nichel
Nick Couchman wrote:
I have a quick question about PHP and HTML.  I have a page that is 
supposed to update the status of hosts by pinging each host and 
displaying the result.  I would like to get the page to the point that I 
can have something (either PHP or JavaScript or the like) ping every 10 
seconds or so and update the page (I have text boxes for the status) 
WITHOUT reloading it.  Does anyone know if this is possible with PHP? Or 
does anyone know of another way I could do it?  JavaScript (at least any 
of it that I've seen) doesn't have a function to run a command on the 
server (which makes sense, since it is mainly client-side), and I don't 
know about CGI.

Thanks,
Nick
Don't rely on a browser to do this...have the ping script run on a 
cron, and update the status in a database or flat file.  You can even 
have the script send out an email (I have heard that some people have 
gotten IM to work thru php, but I don't know if that really works) if a 
box is down.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] HTML Question

2002-03-31 Thread jtjohnston

I suppse this is an HTML question more than PHP.
I have a server elsewhere that does not have PHP accessible. Stupid 
cheap of them, but true.
I want to display a page within a page, WITHOUT using ?php ... ? which
won't work.

I tried stuff like:

IFRAME SRC=http://www.somewhere.ca/test.php; frameborder=no
border=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=no
/IFRAME

Does not work of course.

Can I even do this?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] HTML Question

2001-11-11 Thread Boaz Yahav



Hi

Check out this attached 
image.
This is the source HTML : 


HTMLBODY 
FORM SELECT 
DIR="RTL"OPTION 
VALUE="1"1 
/SELECT 
BR 
SELECTOPTION 
VALUE="1"1 
/SELECT 
/FORM/BODY/HTML


Notice that the upper pull down 
has a small space on the left side of the arrow.
Anyone has an idea why the RTL 
makes that?



-- 
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]