Very nice answer Mark, some of us newbies get lost in the fray here so *I*
really appreciate when someone takes the time to show how and explain the
workings. I'm tackling a form and database, and as a new php person it's a
bit intimidating!
"Mark Collin" <[EMAIL PROTECTED]> wrote in message
new
You haven't closed your form tag which is causing it to all go wrong.
Here is some working code for you:
Your name:
Your age:
action.php:
Hi .You are
window.alert('You must complete both fields');
You would probably find
Perhaps you could test the string length using strlen() and then if 0 dont
issue
the SQL statement rather a msg to the user.
if((strlen($searchtext))>0){ issue sql }else{echo'enter a search string you
stupid user';},
or you could use java scripts to validate the form 1st.
brent
"Anthony Ritter" <
is it because your ISP has register_globals turned off?
if so this may correct the problem:
function handleform()
{
global $_POST['comments'];
global $_POST['yourname'];
global $_POST['youremail'];
$comments=stripslashes($_POST['comments']);
$yourname=stripslashes($_POST['yourname']);
$your
Hi
It sounds like magic_quotes_gpc is set to On in your php.ini file.. change
this value to Off if you wish to handle escaping of characters yourself.
Secondly, it's advisable to research nl2br()
HTH
Brad
"News.Php.Net" <[EMAIL PROTECTED]> wrote in message
news:20021101073812.3879.qmail@;pb1.p
Thank you Colin, it solved it.
Jean
"Colin McDonald" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> try $_POST[''] instead of $HTTP_POST_VARS[''] this changed recently.
>
> also, $username probably doesn't work because you have register_globals
> turned off
try $_POST[''] instead of $HTTP_POST_VARS[''] this changed recently.
also, $username probably doesn't work because you have register_globals
turned off in your php.ini
colin
Jean Bresse wrote:
> Hello:
>
> Took my first dip into the world on php over the weekend and got stumped on
> this:
>
Some further details. My server config is: Apache/2.0.36 (Win32) DAV/2
PHP/4.2.1
Thanx again,
Fester
"Fester" <[EMAIL PROTECTED]> wrote in message
advn6h$9bi$[EMAIL PROTECTED]">news:advn6h$9bi$[EMAIL PROTECTED]...
> Hi,
>
> I am having the same problem, and can reproduce it with a simple test
>
Hi,
I am having the same problem, and can reproduce it with a simple test
script. When a user name and password are entered, the phpinfo output shows
that it is a POST method with an empty _SERVER[argv] array. I have verified
that register_globals is set to "on" in my php.ini. My test program
Or change the $submit to $_GET["submit"]
if (isset($_GET["submit"])) {
mysql_query("INSERT INTO $ntable VALUES
('','$title','$posted_by','$entry',NULL)");
print("$title\n");
print("Posted by $posted_by\n");
print("$entry\n");
}
/brother
> -
it seems as if register_globals option is turned off and therefore $submit
is not set.
hth
ilker
"James Meers" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
I have this form and its just not picking up the submit
variable however it is po
> "Martin.Andrew" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > This document resulted from a POST operation and has expired from the
Still sounds like a caching issue to me. Change the name of the
posted-to page temporarily, or set a caching timeout
hi martin,
maybe you're mangling post and get together
example
watch that action url contains a get parameter and method is post
afaik won't work with ns4.7
hth
ilker
"Martin.Andrew" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a strange Bug t
haha, sorry
i saw the bad words, and couldn't help myself ...
"Internerds Canada" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I need to make this script send a file with it, can anyone help? thanks.
> dont worry about the bottom part, i havent finished it
At 09:17 PM 2/12/2002 -0800, you wrote:
>What server side script should I use, I was visiting hotscripts and they
>don't really have anything that will work for me.
You don't really need a script. Just use a PHP file as the form action,
and in the PHP file create an e-mail with all the form inf
Mike,
> What server side script should I use, I was visiting hotscripts and
> they
> don't really have anything that will work for me.
http://www.php.net/mail
Hotscripts should have *more* than you need...
Regards,
James Mclean
Microsoft Free Zone -
No PC was harmed during the creation of
What server side script should I use, I was visiting hotscripts and they
don't really have anything that will work for me.
"Mike" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am creating a page with a form on it. I want it so that when people
click
> sub
In the page which receives the post, simply do:
insert into TABLE (x,y,z) values ($x,$y,$z);
mail("me@mymail","subject","$x\n$y\n$z);
<[EMAIL PROTECTED]> wrote in message
OF8F2A938C.D46863F6-ON65256AC8.002FEFF3@domain">news:OF8F2A938C.D46863F6-ON65256AC8.002FEFF3@domain...
> Dear List
18 matches
Mail list logo