473,387 Members | 1,455 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

PHP html Forums

158 100+
I think this is a php error, When i use print_r(array_keys($_POST)); to get the array keys of my variables on my web page it return them but it replaces my periods and spaces with underscores. It used to work and for some reason it just started.
Jun 28 '07 #1
3 1075
miller
1,089 Expert 1GB
This thread appears to be a PHP related question. It is therefore being moved from the Perl Forum.

- MODERATOR
Jun 28 '07 #2
Atli
5,058 Expert 4TB
I think this is a php error, When i use print_r(array_keys($_POST)); to get the array keys of my variables on my web page it return them but it replaces my periods and spaces with underscores. It used to work and for some reason it just started.
Dots and spaces, as well as quotes (PHP5), are considered illegal in variable names and are converted into underscores.
I'm not sure if this is PHP's doing or if this is done by the HTTP protocols, but it is best to always use legal variable names as keys.

I'm surprised that this worked for you in the past, I would not have thought that possible.
Did you just update any software you were using? What version of PHP are you using?
Jun 29 '07 #3
kardon33
158 100+
yeah it worked fine for about half a day of testing and just suddenly it stoped. But i got it working now.
Jun 29 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Kevin Morgan | last post by:
I've written a script that extracts part of a remote web page for me to put into a mac dashboard widget. What I need to do is replace each: <a class='pollBoxA' href='http://www.foobar.com'> text...
4
by: Leif K-Brooks | last post by:
I'm writing a site with mod_python which will have, among other things, forums. I want to allow users to use some HTML (<em>, <strong>, <p>, etc.) on the forums, but I don't want to allow bad...
4
by: Anand | last post by:
The situation is; I receive a response back from the server which i only a part of html code. e.g. a table like <table <tr><td>high</td></tr>........ </table>. In other words, I receive file as a...
385
by: Xah Lee | last post by:
Jargons of Info Tech industry (A Love of Jargons) Xah Lee, 2002 Feb People in the computing field like to spur the use of spurious jargons. The less educated they are, the more they like...
5
by: Throne Software | last post by:
Throne Software has opened up C, C++ and C# Forums at: http://www.thronesoftware.com/forum/ Join us!
78
by: Robert Baer | last post by:
The homepage i have had up and seemingly working is: http://oil4lessllc.com/ However, the validator has so many complaints, and being so incompetent, i have no clue as to how to fix it all. Would...
9
by: Tony Girgenti | last post by:
Hello. I'm developing and testing a web application using VS.NET 2003, VB, .NET Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2 computer. I'm using a web form. For a...
4
by: John | last post by:
Hello, I have a html message board / forums and would like to take the last message posted and put it on the front of my website somehow. Does anyone know of a program that would do this...
2
w33nie
by: w33nie | last post by:
This html form that I'm using works fine, apart from that it never ends up sending any information through to my designated email. Does anyone see a problem in my code? <form...
3
by: lenbell | last post by:
When I create a html using my html editor and then insert php code I get odd results. I've gotten rid of most but some remain. If I rename the file to a .php it helps but still screws up. here...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.