[PHP-WIN] Re: form to php

2004-07-30 Thread Al Jones
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

[PHP-WIN] Re: form to php

2004-07-29 Thread Mark Collin
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

[PHP-WIN] Re: form textbox with search

2004-04-20 Thread Brent
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" <

[PHP-WIN] RE: form question

2003-01-13 Thread Uttam
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

[PHP-WIN] Re: Form text with reserved chars

2002-11-04 Thread Brad Thomas
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

[PHP-WIN] Re: Form, reading parameters

2002-07-09 Thread Jean Bresse
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

[PHP-WIN] Re: Form, reading parameters

2002-07-08 Thread colin mcdonald
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: >

[PHP-WIN] Re: Form Problem

2002-06-09 Thread Fester
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 >

[PHP-WIN] Re: Form Problem

2002-06-09 Thread Fester
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

RE: [PHP-WIN] Re: Form Problem

2002-06-06 Thread brother
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 > -

[PHP-WIN] Re: Form Problem

2002-06-06 Thread Ilker Cetinkaya
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

[PHP-WIN] Re: form Post action

2002-06-04 Thread Steve Yates
> "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

[PHP-WIN] Re: form Post action

2002-06-04 Thread Ilker Cetinkaya
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

[PHP-WIN] Re: Form

2002-02-22 Thread Nicole Amashta
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

Re: [PHP-WIN] Re: Form submit action type.

2002-02-13 Thread Mike Flynn
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

Re: [PHP-WIN] Re: Form submit action type.

2002-02-12 Thread James Mclean
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

[PHP-WIN] Re: Form submit action type.

2002-02-12 Thread Mike
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

[PHP-WIN] Re: form submission --- help

2001-09-16 Thread CJD
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