snip
http://www.mydomain.com/private/some_privat_file.doc and downloading
this file! I need a way to make this file only accessible to users who
have a user_id in there session - is this possible? Or is my only
alternative to password protect this directory using the webserver and
force users to
snip
I have tried to use readline to make this happen, but I'm getting
error
messages.
Somebody with a suggestion about this?
/snip
have any code samples or example error messages for us?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Try an absolute url.
Daniel Perez [EMAIL PROTECTED] 3/3/2004 8:55:06 AM
Hi there,
I´ve got a login form, that calls a script, to check if
the user/pass match. If yes, the script do a header(Location :
index.php). In Explorer works but not in Mozilla nor Netscape.
Anyone knows something about
snip
I already tried that, but had problems with ' ' .
/snip
Did you try the htmlentities function?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How can I get the field names from a specified MySQL table? I don't need
the data, I just want to get an array of the tables field names.
Thanks,
Matt
http://sweetphp.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
snip
I want to know how to control php program connect to MySQL Database
System ( another computer machine ) ?
/snip
http://www.php.net/manual/en/function.mysql-connect.php
http://www.php.net/manual/en/function.mysql-pconnect.php
--
PHP General Mailing List (http://www.php.net/)
To
snip
But, I want to know is there any tools similar with php-mssql for
php
connect with MS-SQL ?
Any other can help ?
/snip
1. look at the manual http://php.net/mssql
2. try google
3. search the list archives
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
,
Matt
http://sweetphp.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
I'm trying to password protect an online PDF file. I know how to use PHP to
pw protect a webpage, but what would be the best way to protect access to a
nonwebpage file?
thanks a lot
Matt
--
___
| Matt Hedges
| President, Vino del Sol
| [EMAIL PROTECTED
Thanks, that worked great.
I found this for anyone else like me new to htaccess:
http://www.htmlbasix.com/passwordprotect.shtml
works great.
matt
Roger B.A. Klorese [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I'm trying to password protect an online PDF file. I know
how
try this
if($userfile) {
if(move_uploaded_file($_FILES ['userfile'],
$uploadpath/$userfile_name)) {
echo $userfile_name;
echo Successfully Added!br\n;
} else {
echo (error!);
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
snip
Was reading through:
http://uk.php.net/manual/en/features.connection-handling.php
And I was wondering how PHP handles script termination when you have
'output_buffering = On' in your php.ini?
If I have a long script that does lots of database stuff for example,
and is riddled with
Hello,
I am working on using PHP to build a web store.
http://www.squirrelcart.com/ looks to be pretty good for a shopping cart-
does anyone have any experience with this or others?
Also, what suggestions do ya'll have for a payment gateway?
thanks
matt
--
PHP General Mailing List (http
snip
What they've asked for, is that when they reply to the enquiry, they
are
reminded to chase up the enqiry a few days later...
Now I could give them a message on screen, if they happen to be in the
admin area, but what i'd like to do , is simply mail the admin users,
after say, 3 days.
snip
Can anyone tell me if this is a common problem? Is this a purely MSIE
bug, or could PHP be a factor?
/snip
I would guess it is a MSIE problem. You could check the raw post data
coming into php too see if it is a php bug. I think
$GLOBALS['HTTP_RAW_POST_DATA'] has the post data
--
PHP
gonna have to
use some sort of recursion here, but I'm not sure how to go about this.
Please help if you can.
Thanks,
Matt
http://sweetphp.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
No, i'm using a MySQL DB.
Justin Patrin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Matt Palermo wrote:
Hey everyone. I'm looking for assistance/suggestions/answers on how to
build a select dropdown box from data that needs to be pulled
recursively
from a MySQL database
snip
Anyone recommend a book for a regex newbie ?
/snip
O'Reilly usually has some good stuff
http://www.oreilly.com/catalog/regex/
There is plenty of tutorials online too, just google and you will get a
bunch of results.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
snip
I want to be able to simply FTP a new movie
onto the server, and then have the menu update itself. possible? I
would also be looking to do something similar with JPGS.
/snip
take a look at
http://www.php.net/readdir
http://www.php.net/opendir
here is some code to help start you
echo
snip
I'm guessing this is not a sensible approach.
Every place I construct a url, I'd have to remember to add this.
/snip
Have you looked into sessions and/or cookies?
I think you want to use $_POST not $POST
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
=== false)
die(ora_getcolumn() failed: .ora_error());
print td$cell_data/td;
}
print /tr\n;
}
print '/table';
?
Thanks for any advice.
Matt
I modified that code to make it more readable. You may be wondering why the $columns
variable looks like a string and then later like an array. Don't worrythere's no
bug there. The $query variable actually equals select ${columns_imploded} from
${state}_spell where ${where_clauses};
Matt
snip
Next, I want to remove excessive CR/LF, [i.e. more than 2]
$text= preg_replace(/\n\n+/, \n\n, $text);
// remove excess This doesn't seem to do anything.
/snip
not 100% sure this is right but give it a try
$text = preg_replace(/\n\n+|\n\r[\n\r]+|\r\r+/, \n\n,
Hello,
I'm working on a webpage at http://hedges.org/busolemiss/template/index.html
I need for a table cell to fill in the remaining space between some rows
above and a row below, no matter what the window size. I thought this was
possible with a height=*, but it doesn't work.
If you look at
snip
Can I avoid that intermediate step, somehow? When my script logs in
the
user, how to I write the code that dispatches directly to the home
page?
/snip
Have you tried a redirect?
http://www.php.net/header
?php
header(Location: http://www.example.com/;); /* Redirect browser */
/* Make
snip
$string = substr($stringname,0,50);
echo $string;
http://www.php.net/substr
/snip
That will just give the first 50 characters of the string.
You could just try one of the many suggestions on
http://www.php.net/manual/en/function.str-word-count.php
Scroll down to the user comments and
snip
Assuming there's a preceding page that has created the session 'name'
and
registered the var 'order' with the 'name' session.
session_name('name');
session_register('order');
/snip
Try $_SESSION['order']
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
snip
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
http://www.w3.org/TR/html4/loose.dtd;
html
head
titleUntitled Document/title
meta http-equiv=Content-Type content=text/html;
charset=iso-8859-1
/head
body
?php session_start();
echo(session_id());
?
/body
/html
/snip
Take a look
[snip]
This is where the var's $list and $additional_letters are filled. The
file
is called hangman.php. I want to open this file, put the words into a
html
file so that someone can change them and write them back. That's it.
[/snip]
is it out of the question to store the values in ther own
snip
$StockURL =
http://finance.yahoo.com/d/quotes.txt?s=xrx,ikn,dankyf=sl1e=.txt;;
$StockResults = implode('', file($StockURL));
$Rows = split(\n, $StockResults);
foreach($Rows as $Row) {
list($Symbol, $Price) = split(,, $Row);
$Symbol = str_replace('', , $Symbol);
echo $Symbol.
snip
Would PHP be a good program to use for this project? Has anyone had to
reformat unstructured data to insert into a database? If anyone has any
suggestions or examples please let me know. J
/snip
If you have not already, look at regular expressions. imho, by far the
best way to parse
[snip]
?php
if ($TextArea=) {
echo You have to fill out the entire form,
go back and try again.;
} else {
$to = [EMAIL PROTECTED];
$from = From-Test;
$subject = Subject-Test;
$message = $TextArea;
mail($to, $subject, $message,From: $from);
echo Thankyou;
}
?
[/snip]
What is happening when the
ahh, I have to correct myself
replace this: if ($_POST['TextArea']=) {
with this: if ($_POST['TextArea']==) {
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
did you replace ($TextArea=) with ($TextArea==) ?
($TextArea=) will reassign $TextArea to
Pooya Eslami [EMAIL PROTECTED] 2/2/2004 3:00:32 PM
Well the problem is not that it won't get executed, its that every
thing
will be sent except the message in the textarea! subject, to and from
are
[snip]
while (!$recordSet-EOF) {
$arrX = $recordSet-fields['user_id'] =
$recordSet-fields['field_value'];
$recordSet-MoveNext();
[/snip]
while (!$recordSet-EOF) {
$arrX[$recordSet-fields['user_id']] =
$recordSet-fields['field_value'];
$recordSet-MoveNext();
}
--
PHP General Mailing List
Hello,
I have a basic question I can't figure out.
My site lets people enter in their information... I now want to be able for
a user to search the database. For example, enter in firstname or
lastname in a text box, hit submit, and have the results returned.
How do I write this in PHP?
I've
this?
thank you very much,
Hedges
Now, How do I get
Matt Hedges [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello,
I have a basic question I can't figure out.
My site lets people enter in their information... I now want to be able
for
a user to search the database
Thanks, ya'll! Got it working.
Matt Hedges [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello,
I have a basic question I can't figure out.
My site lets people enter in their information... I now want to be able
for
a user to search the database. For example, enter
)
is this possible?
thanks,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Can someone help me with the following? Preferably someone other than the
wise ass below?
thanks
matt
Burhan Khalid [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Matt Hedges wrote:
Hello,
I have a page where users can enter in information about
themselves... I want
snip
But I am also in need of a Mechanism where I can transfer an
Initiated session to the User's Browser ...
( Not Just OutPutting the above variable .. But actually Transferring
the
Session to the User's Browser )
/snip
not sure I understand 100% what you mean.
You could send a cookie or
easy
like this for creating zip files. Please let me know.
Thanks,
Matt
http://sweetphp.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
replace
?php
$handle = fopen ($filename, r);
do {
$data = fread($handle, 128);
if (strlen($data) == 0) {
break;
}
print ($databr);
} while (true);
fclose($handle);
?
with this
?php
$handle = fopen ($filename, r);
do {
Is Googlebot (or any other bot) able to follow links that are php?
e.g.
a href=Contact.phpContact Us/a
a href=Product.phpimg src=Images/product.jpg width=110 height=111
border=0/a
Is there a way to invite bots to your site?
Thanks
Matt
snip
With a GET, the fields would be included into the query strinbg, so
this is quite easy. What happens in a POST?
/snip
take a look at http://pear.php.net/package/HTTP_Request
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
snip
If you View Source in IE, you'll see it printed in the expected way.
The browser, though, will not show it as you expect it. This is
because
the browser needs a br tag for a newline and will not read a \n as a
br.
So, use br instead of \n.
/snip
you could also wrap the text in pre tags.
snip
HTTP/1.1 302 Found
Date: Mon, 26 Jan 2004 11:38:51 GMT
Server: Apache
X-Powered-By: PHP/4.3.1
Location:
http://domain.tld/c17c340a3e6a2cb268451f3eda5930ce/frameset.php?q=string
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
snip
How can I create a file (txt) in client-side?
/snip
I dont think there is a way unless you are using some kind of java
applet. You can create the text on the server and give the user a link
to save the text file on their computer.
--
PHP General Mailing List (http://www.php.net/)
To
snip
I know that this is not a PHP problem, but
Is there a way to prevent the 'Page has expired...' when the user
press
'Back'
/snip
post to a page that does nothing but process the form post. When it is
done, it redirects to another page.
--
PHP General Mailing List (http://www.php.net/)
because it is MySQL, couldn't you just use mysql_insert_id
http://www.php.net/manual/en/function.mysql-insert-id.php instead of
this:
//now get the random number, and MD5 it to get it alphanumeric
$query = 'SELECT MAX(uiIndex), cKey FROM randomKey GROUP BY cKey';
$result =
snip
Hi :),
i'm looking for a function to remove multiple dynamic parts
of a string, there are only the start and end strings given
(remove all between string A and string B)
got somebody a working procedure for that?
regards
/snip
a start of a procedure I have
$stringA = string A;
$stringB
snip
Hi,
I noticed that often mod_php loaded as a shared library by apache
doesn't
load php.ini,
and I have to restart apache to make it work.
Apache version is 1.3.28 and Php is 4.3.4, all compiled by me.
They are running on an updated RedHat 7.3.
Is it a known (and solved) problem?
/snip
I
)...
How do I do this?
thanks,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
snip
Or, correctly:
header(Location: http://www.yourdomain.com/personalpage.php?id=$id;);
/snip
to add to what john said, you could make it a little easier to move
your script from place to place if you use some php variables and the
dirname function.
this comes right from the manual:
?php
page.php?id= (id = nothing).
any suggestions?
thanks
matt
Matt Hedges [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello,
I've built a page where someone can enter in their information...
currently, when they hit submit, a screen comes back and says thanks for
entering your info
snip
I have about 8 different pages that are all session linked. Do I have
to add this ini_set() at the beginning of all the session_start() calls
on all these pages.
/snip
Not 100% sure, but I think if you dont add ini_set() before all of your
session_start() calls, session.gc_maxlifetime
snip
Also if I were to create a .htaccess
file that is kept in the same dir as the application, what do I need to
include in that file ?
/snip
something like:
php_value session.gc_maxlifetime 25000
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
snip
I'm really curious to see if any of this really works. I know it
_should_,
but...
Assuming a shared/virtual server where all session files for all sites
are
in the same location. When the garbage collector is triggered by a
request
to the site with this setting in .htaccess, does it honor
snip
If you store session variables , but the user has session cookies
disabled,
is there any way to recuperate those session variables?
/snip
Yes, look at the session.use_trans_sid variable.
http://www.php.net/session
If cookies are disabled, php will pass the session id as a ur variable
or
snip
If I want to store a session id in a database, how would I do it ,
like
this?
$session_id=SID ; ?
and then if I want to retrieve this session id and get all of the info
back
that goes with this session id, I would say
session_start()
and then what?
thanks
/snip
You could just have php store
snip
Should I use
setlocale()? I mean is there a way which will give me the local
datetime
without calculating the difference manually?
/snip
I have not used it, but it looks like setlocale() will give you what
you want.
http://www.php.net/manual/en/function.setlocale.php
snip
Suppose that I
snip
I am having problems generating an array based on data passed from a
form.
The form has a series of fields with the same name math. When
submited if
i have register_globals=on i have no problems calling a $math variable
and
it spits out all the values assigned to math, however with
snip
echo form method='get' action='exams2.php';
$Student = array (albert Einstein, Ivan the Terrible, Napolon,
Simon Bolivar, Issac Newton);
while(list(,$name)=each($Student)){
echo what grade did $name get in Maths?;
echobrbr;
echo select name='Math[]'
[snip]
I'm using the following to replace certain characters but am having
troubles
with TABS. How do I find them?
$replacement = array(\, ,, ., !, ?,;, :,),(,\n);
Thanks
[/snip]
I think \t . Double check with google.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[snip]
Can some one point me in the right direction for a good tutorial on
form
validation in PHP?
Thanks,
alex hogan
[/snip]
I like to use regular expressions for my form validation. Search
google for reugular expressions, you will get a bunch of results. Also
take a look at the php
[snip]
Hi,
you can do it on server site (php code) or client side (javascript
code)
DS
[/snip]
Is this a question? If it is, yes you can use regular expressions with
javascript and php.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
snip
while ($row = mysql_fetch_array($selection)){
if (section == $sectionName){
echo b . $row[sectionName] . /b;
}else{
echo $row[sectionName];
}
thx
/snip
Not sure if I understand you 100% but I think you could just either
check the $_GET or $_REQUEST array. Something like
try this:
print pre;
print_r ($_POST);
print /pre;
do you see nome in there? I think the reason $senha has a value in it
is md5 gives you a string even if you pass it a blank value.
I would use these 2 variables $_POST['nome'] and $_POST['senha']
also look at register_globals on the php.net
http://us2.php.net/substr
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
method.
Hope this makes more sense than my last post.
Thanks again!
Matt
-Original Message-
From: Angelo Zanetti [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 5:45 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] dreaded sessions
just
[snip]
How I can create thumbnail with php? using the GD libray?
[/snip]
yes.
Also I hear imagemagick works well.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
OK, but how? I already use GD, I need to now how to create a thumbnail,
somebody now how to use the GD functions to create a thumbnail???
[/snip]
http://www.php.net/GD
I think you want to look at:
imagecopyresampled -- Copy and resize part of an image with resampling
imagecopyresized --
No, it's running on a FreeBSD server. I don't suppose it could have to do
with the firewall or browser security settings on my machine, though ...
could it? I can verify that the session file is being written to the
server's tmp directory... I'm stumped.
--
Matt Grimm
Web Developer
The Health
and that is
not the situation either.
Anybody have similar problems with delayed in session writing or
lost session data? I register all of the data into
the session that I need leave the session alone except for reading
of the session data.
Thanks in advance!
Matt
Matt
Thanks Jason.
How would I do that? I mean, what would I put instead of
if ($_FILES['imagefile']['type'] != image/pjpeg)
thanks
Jason Wong [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Friday 16 January 2004 10:32, Matt Hedges wrote:
if ($_FILES['imagefile']['type
On Friday 16 January 2004 10:32, Matt Hedges wrote:
if ($_FILES['imagefile']['type'] != image/pjpeg)
The 'type' in $_FILES is provided by the browser. IIRC only IE uses
image/pjpeg whilst other browsers use image/jpeg. But regardless of
what
the browser sets, it is more reliable to get
?
Jason Wong [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Friday 16 January 2004 23:55, Matt Hedges wrote:
How would I do that? I mean, what would I put instead of
if ($_FILES['imagefile']['type'] != image/pjpeg)
the browser sets, it is more reliable to get
[snip]
(1) How would I do that (use getimagesize() instead to find type)?
[/snip]
http://php.net/getimagesize
[snip]
(2) Stupid question: how do I say
if ($_FILES['imagefile']['type'] != image/pjpeg)
and add image/jpeg to that constraint?
[/snip]
there are many ways, I will show you an
refresh
the page, it loads correctly. What is going on?
Thank you,
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336.6205 (fax)
E-mail: [EMAIL PROTECTED]
Web
[snip]
Can anyone suggest a PHP solution to creating a form that gets built
after a client enters a variable?
[/snip]
php runs on your server so to build the forms based on a user entered
form field, the form has to be submitted, so you would have to use
javascript to automatically submit the
, but that's it --
it's a blank white page otherwise.
The apache error log is silent, and the access log is normal. No php errors
are displayed or written to the log. Here's the real kicker -- if I refresh
the page, it loads correctly. What is going on?
Thank you,
--
Matt Grimm
Web Developer
The Health
try this, it works for me:
if ($_FILES['imagefile']['type'] != image/pjpeg)
{
print(File must be a .jpg. File will not be accepted; please choose a
.jpg picture or convert the picture to .jpg format.);
unlink($filename); // This will remove the temporary file so we don't
have to deal with
Hello all,
After playing around with the options, I've found that the following method
for uploading something with constraints is the easiest...
The sample below first checks for 3 constraints (jpg, size, and width) and
if it is cool it uploads it but renames it first...
[snip]
When I had a look at the servers phpinfo and I saw that both
upload_tmp_dir and user_dir have
no value and no value set for them.how do I change it (via a
.htaccess file as I dont have access to the
php.ini) so that I can write the data as required from my script?
[/snip]
Take a look
://www.sitepoint.com/article/728
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336.6205 (fax)
E-mail: [EMAIL PROTECTED]
Web: www.healthtvchannel.org
Matt Hedges [EMAIL PROTECTED] wrote in message
news
I am a little late but I have used the method described on a list apart
http://www.alistapart.com/articles/succeed/ and it works really
well.
You might want to give it a try, I think it works a little bit
different than the way you are trying.
--
PHP General Mailing List (http://www.php.net/)
To
;
}
else {
echo ;
echo Could Not Copy, Wrong Filetype
(.$_FILES['imagefile']['name'].);
}
}
I know there's some easy way to do it...
thanks a lot,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Until I get this sorted, can I kill everyones stored session data?
[/snip]
How is the session data saved? It is to files, you could just delete
all of the session files.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I do't know to be honest, how do I find out? (I'm on a unix server)
[/snip]
you could use the phpinfo() function and check the value of
session.save_handler, if it is files the session data is in files in
the
session.save_path directory.
--
PHP General Mailing List
GREATLY
appreciated
thanks,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
']['name'].);
}
}
and then whatever else you want it to do (be sure to include connecter to
MySQL database). thanks to everyone who helped, especially
http://www.evolt.org/article/Storage_and_re_use_of_images_using_PHP_GD_Part_1/20/27237/
Matt Hedges [EMAIL PROTECTED] wrote in message
Howdy,
I'm trying to specify font face=Monotype Corsiva in my php document... but
can't b/c it's two words... if it was html I could just put , but since I
can't do that in php, does anyone know what to do?
prob. a stupid question,
thanks a lot,
Matt
--
PHP General Mailing List (http
you can use single quotes ' ' (I didn't think it would work, but it does)
around the font.
matt
Matt Hedges [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Howdy,
I'm trying to specify font face=Monotype Corsiva in my php document...
but
can't b/c it's two words... if it was html
...
Any ideas/suggestions? I've come across one, charge.com... anybody had any
experience with it or another?
thanks,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
That works great, I am messing myself up, however because I am using
checkboxes so when I run this, if I have unchecked the checkbox, the
value
doesn't come through and I want an unchecked box to be 0 for example so
I
may need some javascript...
[/snip]
Can only one option be checked per
?
I'm just talking about the basics, like empty required fields, illegal
characters, string lengths, etc.
What are your preferred methods? I do an awful lot of content management
with HTML forms, so it's not an entirely spurious question.
--
Matt Grimm
Web Developer
The Health TV Channel, Inc
relied upon for more serious validation.
--
Matt Grimm
Matt Grimm [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Is there a distinct advantage to doing form validation / error checking on
the server side using PHP? That's how I've always done it because I know
PHP better than
[snip]
why would you validate data on the server
if you have a JavaScript that checked the user's input before it gets
submitted to the server ? I mean the whole point of you having that
JavaScript is to make sure the the correct data gets entered so why
bother checking it once again on the
[snip]
What is the best way to document such projects? How
you developers document your project?
[/snip]
GIYF
http://phpdocu.sourceforge.net/
http://www.epersonae.com/snapping/archives/000390.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
$_SERVER['SCRIPT_NAME']
or
$_SERVER['PHP_SELF']
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336.6205 (fax)
E-mail: [EMAIL PROTECTED]
Web: www.healthtvchannel.org
Louie Miranda [EMAIL
601 - 700 of 1597 matches
Mail list logo