Re: [PHP] PHP generated HTML has submit button which picks up the wrong url.

2010-02-06 Thread Michael A. Peters
Ashley Sheridan wrote: Bit of advice though, don't use Javascript to submit a form. Firstly, Javascript isn't available on all browsers, and on those it is available on, not everyone has it turned on. The W3C has the stats for Javascript being unavailable in a browser at about 5%. Yup. Just

[PHP] Help with regex (search/replace) please

2010-02-06 Thread Ryan S
Hey guys, As many of you might know, i totally suck at regex..so would really appreciate some help here. Basically i have a html page with a lot of textboxes,radios,checkboxes etc i need your help in the form of a regex so that when i give it the name and value it gives me the entire code of t

Re: [PHP] Help with regex (search/replace) please

2010-02-06 Thread Phpster
Why not just pass the value in the onclick? Onclick=doSomething(this); Would give you simple access to all the properties of that element. This.value would pass just the value. Bastien Sent from my iPod On Feb 6, 2010, at 9:43 AM, Ryan S wrote: Hey guys, As many of you might know, i to

Re: [PHP] Help with regex (search/replace) please

2010-02-06 Thread Ashley Sheridan
On Sat, 2010-02-06 at 06:43 -0800, Ryan S wrote: > Hey guys, > > As many of you might know, i totally suck at regex..so would really > appreciate some help here. > > Basically i have a html page with a lot of textboxes,radios,checkboxes etc > i need your help in the form of a regex so that whe

[PHP] Help with regex (search/replace) please

2010-02-06 Thread Ryan S
Hey guys, As many of you might know, i totally suck at regex..so would really appreciate some help here. Basically i have a html page with a lot of textboxes,radios,checkboxes etc i need your help in the form of a regex so that when i give it the name and value it gives me the entire code of t

Re: [PHP] Help with regex (search/replace) please

2010-02-06 Thread Ryan S
Hey Ash,Bastien! Rather than a regex, you're probably better off using something like DomDocument, where you can iterate over all of the input elements in the document, and check the attributes of each one to check if they match your criteria. @Ash, You're kinda reading my mind... i did do t

Re: [PHP] Help with regex (search/replace) please

2010-02-06 Thread Ashley Sheridan
On Sat, 2010-02-06 at 07:53 -0800, Ryan S wrote: > Hey Ash,Bastien! > > > Rather than a regex, you're probably better off using something like > DomDocument, where you can iterate over all of the input elements in the > document, and check the attributes of each one to check if they match your

[PHP] Warning?

2010-02-06 Thread tedd
Hi: Has anyone encountered this warning? Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disab

[PHP] simplexml - can it do what I need?

2010-02-06 Thread TerryA
My first post and I'm just a few days into learning PHP so that I can extract data from an XML feed for updating a MySQL driven website. Simplexml grabs most of my data without a problem but I can't get at the data in elements such as: I have around a hundred of these elements but only need d

Re: [PHP] simplexml - can it do what I need?

2010-02-06 Thread Shawn McKenzie
TerryA wrote: > My first post and I'm just a few days into learning PHP so that I can extract > data from an XML feed for updating a MySQL driven website. Simplexml grabs > most of my data without a problem but I can't get at the data in elements > such as: > > > > > I have around a hundred of

[PHP] Re: Help with regex (search/replace) please

2010-02-06 Thread Al
have you looked at the Pear html_QuickForm2 set? On 2/6/2010 9:43 AM, Ryan S wrote: Hey guys, As many of you might know, i totally suck at regex..so would really appreciate some help here. Basically i have a html page with a lot of textboxes,radios,checkboxes etc i need your help in the form

Re: [PHP] Warning?

2010-02-06 Thread Jochem Maas
Op 2/6/10 4:29 PM, tedd schreef: > Hi: > > Has anyone encountered this warning? > > Warning: Unknown: Your script possibly relies on a session side-effect > which existed until PHP 4.2.3. Please be advised that the session > extension does not consider global variables as a source of data, unless

[PHP] Re: Help with regex (search/replace) please

2010-02-06 Thread Ryan S
@Al, > have you looked at the Pear html_QuickForm2 set? Actually nope, whats it about? just did a google search and found it on the php site but no example code around so dont really have a clue. @Ash, Pastebin! Of course, why didnt i think of that... will do! Actually, just did so that i wou

Re: [PHP] PHP User

2010-02-06 Thread T L
Hello, Depends on what you're looking to do. For intermediate PHP I like PHP Object-Oriented Solutions by David Powers (friends of ED) The focus is on PHP 5...not sure if anyone outside of shared hosting uses PHP 4, but worth a mention. Regarding PHP In Action, This might just be me personally

[PHP] Problem with blocking streams in PHP

2010-02-06 Thread Phani Raju
I am trying to open a blocking stream using fsockopen. I want to write and read XML input/output from a server. After opening the steam I will send a XML request to server using the stream. Once this request is sent, I want to keep listening on the port indefinitely. I tried using blocking s

[PHP] Issue with blocked socket stream

2010-02-06 Thread Phani Raju
I am trying to open a blocking stream using fsockopen. I want to write and read XML input/output from a server. After opening the steam I will send a XML request to server using the stream. Once this request is sent, I want to keep listening on the port indefinitely. I tried using blocking st