Hello,
I'm trying to set up a web site. This site has multiple stylesheets,
one default stylesheet that should be used if the other is not chosen.
The second is a high contrast stylesheet and can be selected by user's
who need it. I'm also thinking of adding two more for smaller and
larger font sel
Hello Everyone,
Thank you for the various positions and suggestions.
I'm going for either cookies or sessions, your examples have given me
much to check. For this situation I should probably have mentioned I
need to keep this as simple as possible, so features like a user login
syst
Hello,
I've got what is probably a very simple question, probably something
having to do with quotes single vs. double, but the answer is
frustrating elusive, I keep getting a syntax error.
I'm trying to customize a wordpress theme a friend sent me. We're both
using apache as web server and php5, b
Hi,
I am wanting to protect some pages by requiring a user to log in to
access them. I'd prefer this be as simple as possible, and without
requiring a database.
So for example when a user goes to www.domain.com/example.php they'll
get a page prompting for their log in credentials, and only after
pr
Hello,
I've got a project that i have to reference information stored on one
page from another. This page I won't be visiting first, and at the
moment i'd prefer to use flat php files, but should that prove to hard
i'll transition to a mysql database. I'm looking for simplicity and
maintainability.
Hello,
I want to open an external link in a new window, i know i can do this
with xhtml, but only with the transitional dtd, which i'm not using. I
was wondering if php could pull this off?
Thanks.
Dave.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
Hello,
I've googled for this and tried some downloads but not finding what
i'm looking for. A site requirement is to have a photo gallery. These
user's are not very technical so i thought about getting a galery with
the ability to upload photos via a browser, I would also like thumb
nails, and the
Hello,
I've got a custom app that interacts with a database. I want to use
something stronger than .htaccess to protect it and ssl is not
available as this is a shared host. There will be several user's
accessing this app and updating the database through it. What i was
thinking was giving each a u
Hello everyone,
Thanks. I'm looking in to the ssl, I would like to use it, and it does
seem much less work than the alternative.
Thanks.
Dave.
On 5/23/10, Adam Richardson wrote:
> On Sun, May 23, 2010 at 12:40 AM, David Mehler wrote:
>
>> Hello,
>> I've got a cust
Hello,
I'm trying to display mysql database output in a formatted table. My
problem is i'm getting a blank screen with no errors. I've got
debugging on, and have run the cli php on this file which produces no
errors either, but neither does it give me any output.
My eventual goal is to select the t
y 25, 2010, at 8:27 PM, David Mehler wrote:
>>
>>> Hello,
>>> I'm trying to display mysql database output in a formatted table. My
>>> problem is i'm getting a blank screen with no errors. I've got
>>> debugging on, and have run the cli php on
Hello,
I've got two questions which are probably fairly simple, my issue is
i'm staring at this so long it's blurring together.
I'm working on a form to insert data in to a mysql database. I've got
a startdate and and enddate field in the database both of type DATE,
i'm needing this as i'm
Hello,
I've got a while loop outputting values from a database. Briefly it
looks like this:
while($row = mysql_fetch_array($result3))
{
echo "";
echo "" . $row['name'] . "";
echo "" . $row['type'] . "";
echo "" . $row['startdate'] . "";
if (!empty($row['EndDate'])) {
echo "" . $row['enddate'
as the
> else for that if statement? Try deleting just the else {}.
>
> JAT
>
> Karl
>
> Sent from losPhone
>
> On Jun 5, 2010, at 6:54 PM, David Mehler wrote:
>
>> Hello,
>> I've got a while loop outputting values from a database. Briefly it
>&
pty($row['EndDate'])) {
>>>> echo "" . $row['enddate'] . "";
>>>> }
>
>
>
> On Jun 5, 2010, at 5:43 PM, David Mehler wrote:
>
>> Hi,
>> Thanks. I took out the entire else section including the exit call, it
>
Hello,
I've got a form with two combo boxes, one for the month one for the
day. Both are required. I've got code that checks the post submission
to ensure neither is empty. My problem is that if a user does not
select anything in the combo boxes January first is sent, this i don't
want. If they hav
Hello,
I've got a form with three fields that are not required for proper
completion of it, ending month, day, year fields. If a user enters
nothing no problem, but if those form fields are entered I need them
validated. They have to be in the correct format -MM-DD date
format and that value al
Hello,
I've got a page that uses include_once to include a set of functions
for use in that page. I later have another include_once pulling in
another page, which generates a table. It relies on a function from
the first file, yet an error is being generated undefined function, I
thought that since
Hello,
I've got what is probably a simple question. I've got a site with a
footer include file. I want to have a section that displays the last
time the page was modified. So for example say the index.php was last
modified today and another page was modified two days ago. When the
include is run o
Hello,
I've got a site that is needing to have two email addresses on it, one
for general contact and information and the other for webmaster for
site problems. I do not want these addresses to become harvested by
spammers yet i want to make it possible for people to email if needed.
I can not use
Hello,
I've been looking at this to long, and am not seeing the issue. When i
had the below php code set to !empty instead of !isset as it is now I
got the value of the name variable echoed back, yet on sql insert that
field, along with all others are empty, though no error is generated,
just a bog
Hello,
I've got a php form processing question. I've got a text field like so:
Name*:
My question is what is the purpose of the id field? I know the name
field is what php references, but am not sure what id is for?
Thanks.
Dave.
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
Hello,
I've got a form with several required fields of different types. I
want to have the php script process it only when all the required
fields are present, and to redisplay the form with filled in values on
failure so the user won't have to fill out the whole thing again.
One of my required fie
ke this better. My question is say
for example the name text field is not filled out but all the other
required fields are how do I get the form to redisplay itself? I was
thinking a location redirect, but this doesn't sound right.
Thanks.
Dave.
On 7/4/10, Paul M Foster wrote:
> On Sun, J
but to
have the combo box values filled in.
I'm certain this is conceptual and coding on my part, I'd appreciate
any assistance.
Thanks.
Dave.
On 7/4/10, Paul M Foster wrote:
> On Sun, Jul 04, 2010 at 01:57:01PM -0400, David Mehler wrote:
>
>> Hello,
>> I've got a
Hello,
Got a form that takes in data to enter in to a database. I want to
make it as secure and as invulnerable to sql injection and other
attacks as possible. I'm wondering if mysqli_real_escape_string or
stripslashes should be used or if the former does the latter. For
example, I have a name vari
Hello,
What i'm trying to do certainly doesn't seem hard conceptually, but
coding it has been rough. I'm wondering if anyone has anything
similar.
I've got a database with records. The first time the page is accessed
the submit button won't be selected, so display information about the
record with
Hello,
I've got a file with a variable declared in it. For purposes of this post:
$name = $_POST['name'];
Now a little later in the same file I have a custom function call that
outputs some information. In that information is an echo statement
outputting $name:
echo $name;
I'm wondering do I ha
Hello,
I've got a form, it's sticky, and it can either display on an insert
or update. Depending on whether i'm wanting to do an insert or update
the area the form gets it's input changes.
So, i've got a name field, if it's set to insert, not sure how to
differentiate between the two actions, name
Hello,
I've got a page with an external link. I'd like to open it in a new
window, but i'm using the xhtml 1.0 strict dtd so this isn't possible.
I was wondering if php could pull this off? Failing that, and not
really wanting to go there, would javascript work for this?
Thanks.
Dave.
--
PHP Gene
Hello,
Not sure if this went out, apologies if this is a double post.
I'm having difficulty tying something together. I'm wanting to display
a record from a database in a form, information from the various
fields in the database goes in to their coresponding fields in the
form, for example address
Hello,
I've got a php5 document and some items are showing up as question
marks. For example, the word President's in the code it is President's
however when displaying in the browser it's President?s the "'" is not
being displayed properly, this is occurring in several places and on
several pages.
Hello Everyone,
Thanks. Ash, i'll try your function and see how that works. The
original content came from word documents, but they were pasted in to
a text editor in this case notetab light. In the meta of the site the
character set is utf-8 I was told it was better to use that than
iso8859-1 if t
Hello,
Has anyone worked with the google maps API to put a map on their site?
If so, please contact me offlist i need to get it going.
Thanks.
Dave.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
I've got two questions. I'm having to redo my form. Can you tell me
the difference if any between these two lines of code? This is for
output filtering.
One has the quotes around the parameter in the function call the other
does not. Here's the functions:
function html($text)
{
Hello,
Thanks to all who answered my quotes question. I've got another one.
I've got several combo boxes that are sticky, below is an example of
one and the function. Now i'd like to tighten it up by ensuring that
an external user can't inject values other than value1 or value2 in to
the script. Th
Hello,
I've got probably a simple question on require_once. I've got a file
that has require_once at the top of it pulling in another file of
functions. Later on in this file I've got another require_once
bringing in a second file. In this second file I have a function call
to a function defined in
Hello,
Do we have any SEO experts on this list? I'm not one, learning only,
reading a book and a few articles/tutorials from webmasters, and I'm
wanting to optimize an existing site to get the best search rank
possible. Some techniques, dos and don'ts would be appreciated.
Thanks.
Dave.
--
PHP Ge
Hello,
I'm wondering if anyone could recommend a newsletter script they use
and like? Some requirements I have are:
1. Free preferred
2. Can be used via a web browser
3. Can put the newsletter submission on a web page
4. Can use rss to feed that web page
5. Produce Xhtml compliant code and integra
Hello,
I've got dates stored in a mysql database. The field is of type date
so the value is something like: "2010-09-29" I'm wanting to display
them as in U.S. dates as in month, day, year. I had a function that
did this, now it is not working and I am perplexed as to why. Here's
my echo statement:
Hello,
I'm working on a site that has email addresses on it. I am not wanting
to use mailto links so as to avoid spam harvesters, I'd like another
solution so that mailto links would work but would not work with
spammers. I've tried several javascript-based solutions, but am not
able to get them t
Hello,
Thank you to all who have offered suggestions with this issue. I have
discussed it with the individual I'm working for and a contact form
has been authorized. So, I'm going to go with that option.
Thanks.
Dave.
On 4/19/12, Ashley Sheridan wrote:
> On Thu, 2012-04-19 at 13:48 +0200, Mati
Hello,
I'm hoping there's an easy fix for this. I've got a centos server
machine 6.4 I believe with cPanel running on it. I need to enable the
gd extension, both the gd and gd-devel rpm packages are installed, but
php is not, that is showing up in a package list. It is however
installed as it's go
Hello,
I am trying to use php to put a copyright notice in a page footer. I'm
using the date function with the "Y" value for the year. Here's the
code:
This works great for a site done in 2011 but next year I'm going to
want to have 2011 and 2012 in the copyright notice, adding an
additional ye
44 matches
Mail list logo