RE: [PHP] Forms PHP

2003-07-02 Thread Jay Blanchard
[snip] I have a form that gets filled out and within this form there is a link to add additional information in a new form. When this information is saved I would like the browser to redirect to the previous form (this I can do) but with all the details they have already filled out still in the

RE: [PHP] Forms PHP

2003-07-02 Thread Gary Ogilvie
[snip] By maintaining the POST (assuming you're using POST)variables and calling them into the form values when reloaded. If you go to the second page store the POST variables in hidden form input types, then grab them when the second page is POSTED. Does this make sense? Not enough caffeine for

RE: [PHP] Forms PHP

2003-07-02 Thread Jay Blanchard
[snip] By maintaining the POST (assuming you're using POST)variables and calling them into the form values when reloaded. If you go to the second page store the POST variables in hidden form input types, then grab them when the second page is POSTED. Does this make sense? Not enough caffeine for

RE: [PHP] Forms PHP[Scanned]

2003-07-02 Thread Michael Egan
If I've understood your initial email correctly another approach would be to save the contents of the form to your database and populate the form fields presented subsequently with information retrieved from the database. You can use the header function to redirect to whatever page you wish

RE: [PHP] Forms PHP

2003-07-02 Thread Gary Ogilvie
[snip] Not really, test for emptiness of the variable (isset())...if it is set display it, if not show it as blank. HTH! Jay [/snip] You'll have to forgive me as I am unfamiliar with PHP, still a beginner!! So if I have a page (page1.php) which is my first page with a form. When I click a

RE: [PHP] Forms PHP[Scanned]

2003-07-02 Thread Gary Ogilvie
Wouldn't I then be saving the contents of that page twice in the database? -Original Message- From: Michael Egan [mailto:[EMAIL PROTECTED] Sent: 02 July 2003 14:53 To: PHP General Subject: RE: [PHP] Forms PHP[Scanned] If I've understood your initial email correctly another approach

Re: [PHP] Forms PHP

2003-07-02 Thread Greg Wiley
On Wed, 2 Jul 2003 14:45:27 +0100, Gary Ogilvie [EMAIL PROTECTED] wrote: [snip] By maintaining the POST (assuming you're using POST)variables and calling them into the form values when reloaded. If you go to the second page store the POST variables in hidden form input types, then grab them when

RE: [PHP] Forms PHP

2003-07-02 Thread Gary Ogilvie
Ah I understand that - many thanks. -Original Message- From: Greg Wiley [mailto:[EMAIL PROTECTED] Sent: 02 July 2003 14:59 To: Gary Ogilvie; 'PHP General' Subject: Re: [PHP] Forms PHP On Wed, 2 Jul 2003 14:45:27 +0100, Gary Ogilvie [EMAIL PROTECTED] wrote: [snip] By maintaining

RE: [PHP] Forms PHP

2003-07-02 Thread Jay Blanchard
[snip] You'll have to forgive me as I am unfamiliar with PHP, still a beginner!! So if I have a page (page1.php) which is my first page with a form. When I click a normal link within this form it takes me to page2.php. This page has another smaller form. When the submit button in this form is

RE: [PHP] Forms PHP - Thanks

2003-07-02 Thread Gary Ogilvie
Thanks all, I shall try these methods now. I may be a while - the form is pretty large :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Forms

2003-06-30 Thread Simon Chappell
Hi can anyone help me with this? I have been failing to get any forms working with PHP now I have run out of ideas? Having bought 3 books the latest one being php mysql for dummies(which might be appropriate for me) I am still failing at this hurdle. the following script is a classic example

Re: [PHP] Forms

2003-06-30 Thread Petre Agenbag
Have you checked register_globals = on/off in your php.ini? If register_globals=off, then you must access your POST variables by: $_POST['whatever']; and your get (the stuff you put at the end of your URL's): $_GET['whatever']; On Mon, 2003-06-30 at 15:48, Simon Chappell wrote: Hi can anyone

RE: [PHP] Forms

2003-06-30 Thread Petre Agenbag
, 2003 6:22 PM To: Petre Agenbag Subject: Re: [PHP] Forms thanks for the reply yes I have tried both on and off, it is currently off? Where would i put those in my script? or do I have to start from scratch? The reason I am asking, is that all the books I have seem to be doing the same out of date

RE: [PHP] Forms

2003-06-30 Thread Daevid Vincent
Agenbag [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 7:14 AM To: Simon Chappell Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Forms Have you checked register_globals = on/off in your php.ini? If register_globals=off, then you must access your POST variables by: $_POST['whatever

Re: [PHP] Forms

2003-06-30 Thread Jason Wong
On Tuesday 01 July 2003 06:51, Daevid Vincent wrote: Additionally, you could put this in a header file or the top of your page: reset ($_GET); while (list ($key, $val) = each ($_GET)) { //echo $key = $valbr\n; $$key = $val; } reset ($_POST); while (list ($key, $val) = each

Re: [PHP] Forms / Array Question...

2003-06-28 Thread Justin French
on 28/06/03 4:20 AM, Noel Wade ([EMAIL PROTECTED]) wrote: Anyone know if this (A) works have you tried it? surely it couldn't take more than 10 seconds to find out eh? and (B) is not actually just some undefined behavior that's risky to use? it's quite common, although i believe the

[PHP] Forms / Array Question...

2003-06-27 Thread Noel Wade
Hi All, Quickie Question... Possibly a silly one; but it would make my life easier if it works! I know that with a SELECT MULTIPLE, you have to use the convention: NAME=$varName[] to get all of the responses into a nice neat array. I'm wondering about the mechanism behind this - is it simply

Re: [PHP] Forms / Array Question...

2003-06-27 Thread Jim Lucas
(A) works YES (B) is not actually just some undefined behavior that's risky to use? It works fine for me. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] forms addslashes ?

2003-06-19 Thread Mukta Telang
Hi, I want to add slashes to a string, if it contains quotation marks and which is received as input from a form, so that I can enter it to a database. What I am doing is as follows: echo input type=\text\ name=\title\; $title=addslashes($title); But the string that gets added has a lot of

Re: [PHP] forms addslashes ?

2003-06-19 Thread Lars Torben Wilson
On Thu, 2003-06-19 at 05:27, Mukta Telang wrote: Hi, I want to add slashes to a string, if it contains quotation marks and which is received as input from a form, so that I can enter it to a database. What I am doing is as follows: echo input type=\text\ name=\title\;

Re: [PHP] forms addslashes ?

2003-06-19 Thread Jason Wong
On Thursday 19 June 2003 20:27, Mukta Telang wrote: I want to add slashes to a string, if it contains quotation marks and which is received as input from a form, so that I can enter it to a database. What I am doing is as follows: echo input type=\text\ name=\title\;

[PHP] forms question -- simple

2003-06-13 Thread Gregory Landry
Hi all, I'm new to the list and to PHP. I haven't bought a book as of yet but I've found a number of resources that are getting me through the basics. I am collecting data from a form. I've having no problems collecting the data and printing it out. But... I have a form with check boxes with 4

RE: [PHP] forms question -- simple

2003-06-13 Thread gregory landry
I figured it out. Yipppee.. Thanks -Original Message- From: Gregory Landry [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 4:10 PM To: [EMAIL PROTECTED] Subject: [PHP] forms question -- simple Hi all, I'm new to the list and to PHP. I haven't bought a book as of yet

Re: [PHP] Forms Session variables

2003-03-11 Thread Ashley M. Kirchner
Guru Geek wrote: perhaps javascript? let me know if you need further help! JavaScript can be turned off. -- W | I haven't lost my mind; it's backed up on tape somewhere. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] .

[PHP] Forms Session variables

2003-03-10 Thread Ashley M. Kirchner
I'm trying to build a multi-step form and using sessions to register the field values, but having serious issues. This is what I'd like to do: step 1 (first page): ask for name, address, email. [submit] step 2 (second page): ask for more personal information [submit] step 3 (last

Re: [PHP] Forms Session variables

2003-03-10 Thread Justin French
You need to slow down and think things through. My recommendation would be to get a SINGLE PAGE form to work how you want first, then assess the logic needed to move onto multiple forms. Also, this was asked a while back, so here was my answer sample code last time:

RE: [PHP] Forms and MySql date

2003-02-21 Thread v0idnull
- From: Frank Keessen [mailto:[EMAIL PROTECTED]] Sent: Friday, February 21, 2003 1:21 AM To: Philip Hallstrom Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Forms and MySql date Hi, You can let the users enter a date as 20-02-2003 into a textfield with the name $userdate Then you can use this function

RE: [PHP] Forms and MySql date

2003-02-21 Thread v0idnull
I apologize the correct order is -MM-DD so you would do: $mysqldate = $_POST[year].-.$_POST[month].-.$_POST[date]; -Original Message- From: v0idnull [mailto:[EMAIL PROTECTED]] Sent: Friday, February 21, 2003 4:37 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Forms and MySql date

[PHP] Forms and MySql date

2003-02-20 Thread Mike Tuller
I have a form that I want to enter a date into a MySql database. I currently have the column in the database set as Date, and can't seem to get the date I enter into the text field to go into the database using the format yymmdd. I could change the column to varchar, and then it would enter, but

Re: [PHP] Forms and MySql date

2003-02-20 Thread Rick Emery
: [PHP] Forms and MySql date I have a form that I want to enter a date into a MySql database. I currently have the column in the database set as Date, and can't seem to get the date I enter into the text field to go into the database using the format yymmdd. I could change the column to varchar

Re: [PHP] Forms and MySql date

2003-02-20 Thread Frank Keessen
Hi, You can let the users enter a date as 20-02-2003 into a textfield with the name $userdate Then you can use this function to convert it; $date_array = split(-, $userdate); $mysqldate = $date_array[2].-.$date_array[1].-.$date_array[0]; Store $mysqldate into the database! Regards, Frank

Re: [PHP] Forms Help (continued)

2003-02-16 Thread Beauford.2002
Globals are turned on - Original Message - From: Ray Hunter [EMAIL PROTECTED] To: Beauford.2002 [EMAIL PROTECTED] Cc: PHP General [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 12:15 AM Subject: Re: [PHP] Forms Help (continued) Do you have globals turned on or off? Ray

[PHP] Forms Question

2003-02-15 Thread Beauford.2002
Hi, Im trying to figure out the best way to do the following. I need to have a series of forms that when the user finishes the first part of the form he is sent to another page where a second form is filled out, and then a third. Making the forms etc. is no problem, what I'm not sure of is how

RE: [PHP] Forms Question

2003-02-15 Thread Chris McCluskey
: Beauford.2002 [mailto:[EMAIL PROTECTED]] Sent: Sat 2/15/2003 10:02 AM To: PHP General Cc: Subject: [PHP] Forms Question Hi, Im trying to figure out the best way to do the following. I need to have a series

Re: [PHP] Forms Question

2003-02-15 Thread Beauford.2002
General [EMAIL PROTECTED] Sent: Saturday, February 15, 2003 1:25 PM Subject: RE: [PHP] Forms Question Hey there, Maintaining state in a web application is always a difficult thing.. fortunatly, you use PHP, which makes it a bit easier. However, if you do not want anything written to the server

[PHP] Forms Help (continued)

2003-02-15 Thread Beauford.2002
Has anyone seen or used this script? It looks fairly straight forward, but I can't get it to work. It is however, exactly what I need. Any help is appreciated. http://codewalkers.com/tutorials.php?show=28page=1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Forms Help (continued)

2003-02-15 Thread Kevin Waterson
This one time, at band camp, Beauford.2002 [EMAIL PROTECTED] wrote: Has anyone seen or used this script? It looks fairly straight forward, but I can't get it to work. It is however, exactly what I need. Any help is appreciated. http://codewalkers.com/tutorials.php?show=28page=1 I never use

Re: [PHP] Forms Help (continued)

2003-02-15 Thread Ray Hunter
Do you have globals turned on or off? Ray On Sat, 2003-02-15 at 21:19, Beauford.2002 wrote: Has anyone seen or used this script? It looks fairly straight forward, but I can't get it to work. It is however, exactly what I need. Any help is appreciated.

Re: [PHP] Forms Help (continued)

2003-02-15 Thread Beauford.2002
, 2003 11:34 PM Subject: Re: [PHP] Forms Help (continued) This one time, at band camp, Beauford.2002 [EMAIL PROTECTED] wrote: Has anyone seen or used this script? It looks fairly straight forward, but I can't get it to work. It is however, exactly what I need. Any help is appreciated

Re: [PHP] Forms Help (continued)

2003-02-15 Thread Kevin Waterson
This one time, at band camp, Beauford.2002 [EMAIL PROTECTED] wrote: I wish to get this script to work. If you can help it would be appreciated, whether you personally like them or not. If it works, I don't care if it was coded by Bugs Bunny. What is it you wish the script to do? Kevin --

[PHP] forms

2003-01-13 Thread cj
G'day All Just a quick question This is really a html more than a php question. Is it possible to have two buttons and have different actions for each button in the same form? Thanks CJ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] forms

2003-01-13 Thread Rick Emery
Do you mean like two SUBMIT buttons? Yes. - Original Message - From: cj [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 13, 2003 7:32 PM Subject: [PHP] forms G'day All Just a quick question This is really a html more than a php question. Is it possible to have two

RE: [PHP] forms

2003-01-13 Thread Cal Evans
://www.calevans.com * -Original Message- From: cj [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 7:32 PM To: [EMAIL PROTECTED] Subject: [PHP] forms G'day All Just a quick question This is really a html more than a php question. Is it possible to have two buttons and have different actions

RE: [PHP] forms

2003-01-13 Thread cj
://www.calevans.com * -Original Message- From: cj [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 7:32 PM To: [EMAIL PROTECTED] Subject: [PHP] forms G'day All Just a quick question This is really a html more than a php question. Is it possible to have two buttons and have different

RE: [PHP] forms

2003-01-13 Thread David Freeman
G'day CJ This is really a html more than a php question. Yep, it probably is... Is it possible to have two buttons and have different actions for each button in the same form? Yep, you can. form etc input type=submit name=first_submit_action value=do this input type=submit

Re: [PHP] forms

2003-01-13 Thread Chris Shiflett
--- cj [EMAIL PROTECTED] wrote: Is it possible to have two buttons and have different actions for each button in the same form? No, because the action belongs to the form, not the submit buttons (which is why action is an attribute of form). However, you can use different names and values for

RE: [PHP] forms

2003-01-13 Thread cj
PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] forms --- cj [EMAIL PROTECTED] wrote: Is it possible to have two buttons and have different actions for each button in the same form? No, because the action belongs to the form, not the submit buttons (which is why action is an attribute of form

RE: [PHP] forms

2003-01-13 Thread Chris Shiflett
--- cj [EMAIL PROTECTED] wrote: The page that processes the form will have to work out which button got pressed? Exactly. For starters, use this bit of HTML/PHP code to help you see what the browser sends you when the form is submitted (add this to the receiving page): pre ?

Re: [PHP] forms

2003-01-13 Thread Rick Emery
[EMAIL PROTECTED] To: [EMAIL PROTECTED]; Php-List (E-mail) [EMAIL PROTECTED] Sent: Monday, January 13, 2003 9:30 PM Subject: RE: [PHP] forms So, if I am understanding correctly The page that processes the form will have to work out which button got pressed? That should be easy enough to work out

[PHP] forms

2003-01-13 Thread cj
Thanks everyone for your help. I got it to work yay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] forms

2003-01-13 Thread Jason Wong
On Tuesday 14 January 2003 09:53, cj wrote: Would you know of any tutorial web sites which would explain how to do this? google knows. As I have not done any java programing before. javascript != java -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems

[PHP] forms and sessions ?

2003-01-09 Thread scott
hi I'm having some problems submitting forms while using sessions :o( I have a form, that will only display if the session vars exist and are not null or empty. I'm using this is the form handler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Forms

2002-12-23 Thread Vicente Valero
I'm having problems using variables from a html form. I've been reading, and it seems that I have register_globlas=off in php.ini. But I've tried to find this file in my Linux, but I haven't been able to locate it. Could someone tell me where is it? Thank you

Re: [PHP] Forms

2002-12-23 Thread John Nichel
How did you install php? RPM, from source? Check in /etc, or do a... find / -name php.ini as root. Vicente Valero wrote: I'm having problems using variables from a html form. I've been reading, and it seems that I have register_globlas=off in php.ini. But I've tried to find this file in my

Re: [PHP] Forms

2002-12-23 Thread Rick Emery
For my Linux (RedHat 7.1), it's at /etc/php.ini - Original Message - From: Vicente Valero [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 23, 2002 10:25 AM Subject: [PHP] Forms I'm having problems using variables from a html form. I've been reading, and it seems that I

Re: [PHP] Forms

2002-12-23 Thread Chris Hewitt
Rick Emery wrote: For my Linux (RedHat 7.1), it's at /etc/php.ini If its not there, check phpinfo(), this will specifiy where that particular installation of php requires it to be. HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Forms

2002-12-23 Thread Johannes Schlueter
On Monday 23 December 2002 17:30, John Nichel wrote: How did you install php? RPM, from source? Check in /etc, or do a... find / -name php.ini Or run a script ?php phpinfo(); ? and look what Configuration File (php.ini) Path tells you. On the output ob this comamnd you can see the

Re: [PHP] Forms

2002-12-23 Thread Jason Reid
] Sent: Monday, December 23, 2002 10:07 AM Subject: Re: [PHP] Forms On Monday 23 December 2002 17:30, John Nichel wrote: How did you install php? RPM, from source? Check in /etc, or do a... find / -name php.ini Or run a script ?php phpinfo(); ? and look what Configuration File

Re: [PHP] Forms

2002-12-23 Thread Jason Sheets
wrote: For my Linux (RedHat 7.1), it's at /etc/php.ini - Original Message - From: Vicente Valero [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 23, 2002 10:25 AM Subject: [PHP] Forms I'm having problems using variables from a html form. I've been reading

Re: [PHP] Forms and PHP variables

2002-12-22 Thread Jason Wong
On Sunday 22 December 2002 10:29, Beauford.2002 wrote: Hi, First off, thanks to all those that helped out with my other questions. Not all my problems were solved, but I'm certainly closer. Still working on the same project I need to do the following. I have a form where users input numbers

Re: [PHP] Forms and PHP variables

2002-12-22 Thread Philip Olson
() in /usr/local/apache/htdocs/.. on line 6 - Original Message - From: Philip Olson [EMAIL PROTECTED] To: Beauford.2002 [EMAIL PROTECTED] Cc: PHP General [EMAIL PROTECTED] Sent: Saturday, December 21, 2002 9:50 PM Subject: Re: [PHP] Forms and PHP variables Use

[PHP] Forms and PHP variables

2002-12-21 Thread Beauford.2002
Hi, First off, thanks to all those that helped out with my other questions. Not all my problems were solved, but I'm certainly closer. Still working on the same project I need to do the following. I have a form where users input numbers only, is there a way I can have php check to make sure a

Re: [PHP] Forms and PHP variables

2002-12-21 Thread Philip Olson
Use is_numeric() http://www.php.net/is_numeric See also the ctype functions which can be read about here: http://www.php.net/ctype And yes, regular expressions are another option but aren't needed here. Regards, Philip Olson On Sat, 21 Dec 2002, Beauford.2002 wrote: Hi, First off,

Re: [PHP] Forms and PHP variables

2002-12-21 Thread Beauford.2002
[EMAIL PROTECTED] To: Beauford.2002 [EMAIL PROTECTED] Cc: PHP General [EMAIL PROTECTED] Sent: Saturday, December 21, 2002 9:50 PM Subject: Re: [PHP] Forms and PHP variables Use is_numeric() http://www.php.net/is_numeric See also the ctype functions which can be read about here: http

Re: [PHP] Forms

2002-12-12 Thread @ Edwin
Hello, Chris Hewitt [EMAIL PROTECTED] wrote: [snip] GET or POST method (I'm not sure whether there is a default). [/snip] GET is the default... should be... I guess... - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Forms

2002-12-11 Thread Chris Hewitt
Beauford.2002 wrote: --snip--- The problem is that the form is not sending the employee name to the php page. If I insert the name in the php page manually, it works fine, so the problem appears to be with the form.

Re: [PHP] Forms

2002-12-11 Thread Hank Marquardt
I think Keith hits this one on the head -- Without an ACTION directive in the FORM definition, you're at the mercy of the browser where it gets sent (if in fact it's sent anywhere) ... You might find some browsers work (defaulting to resubmit to the current page), whereas others will silently

[PHP] Forms

2002-12-10 Thread Beauford.2002
Hi, I'm sending this to both lists as I'm not sure where the problem is, but I believe it is an issue with my HTML form. Here's the problem: I have a drop-down menu form on my webpage with employee names in it. When I choose a name and click submit it gets passed to a php page which accesses a

Re: [PHP] Forms

2002-12-10 Thread Brad Bonkoski
Have you tried echoing out the value on the resulting page, i.e. the page that parses the form? echo $_POST['name']; What does that give you? I don't see anything that really jumps out at me with your code. -Brad Beauford.2002 wrote: Hi, I'm sending this to both lists as I'm not sure where

Re: [PHP] Forms

2002-12-10 Thread Kevin Stone
Subject: [PHP] Forms Hi, I'm sending this to both lists as I'm not sure where the problem is, but I believe it is an issue with my HTML form. Here's the problem: I have a drop-down menu form on my webpage with employee names in it. When I choose a name and click submit it gets passed to a php

Re: [PHP] Forms

2002-12-10 Thread Leif K-Brooks
Change the html to: SELECT NAME=name OPTION SELECTED VALUE=/OPTION OPTION VALUE=JohnJohn/OPTION OPTION VALUE=MaryMary/OPTION /SELECT Beauford.2002 wrote: Hi, I'm sending this to both lists as I'm not sure where the problem is, but I believe it is an issue with my HTML form. Here's the

[PHP] php, forms, mysql

2002-11-18 Thread Adrian Partenie
Hello, I could use some help. I have two framed pages, upperframe.html and lowerframe.html. In upper frame.html: echo table border=1; echo trtd/tdtdID/tdtdSubject/tdtdOpen/tdtdClose/td/tr; while($row = MySQL_fetch_array($result)) { echo trtdforminput type=\checkbox\ method=\post\

Re: [PHP] php, forms, mysql

2002-11-18 Thread Marek Kilimajer
You don't need to use forms (which you got wrong), but simple links with target=lowerframe and href=lowerframe.php?tableID=$tableID, then you get in your lowerframe.php $_GET['tableID'] Adrian Partenie wrote: Hello, I could use some help. I have two framed pages, upperframe.html and

[PHP] Forms and Sessions not working

2002-11-15 Thread Chris Jackson
Hi all: Im new to php and i have an isue. php4.2.3 windows 2000 advanced server I create a simple form page that posts back to its self and im unable to retreive the posted form data to display on the page. it seems like all my GLOBAL amd SESSION stuff isnt working. sample code: form

Re: [PHP] Forms and Sessions not working

2002-11-15 Thread Jason Wong
On Saturday 16 November 2002 15:11, Chris Jackson wrote: Hi all: Im new to php and i have an isue. php4.2.3 windows 2000 advanced server I create a simple form page that posts back to its self and im unable to retreive the posted form data to display on the page. it seems like all my

[PHP] Forms issues..

2002-10-11 Thread Simon Taylor
I am having difficulty managing forms. for example I have a table builder class which builds me a table of a query with all the bells and whistles to make it editable etc. so it creates it's own form to build itself on, then I have a dateselector class which builds a nice little graphic date

[PHP] Forms: How-to not display it if user hits back?

2002-09-29 Thread Jean-Christian Imbeault
I have the following scenario 1- user comes to page A, clicks a button to get to page B 2- Page B is a form the user fills and hits the submit button 3- form data is received and I use header() to send him back to page A So A - B - A The problem I have is with Netscape 7, possibly other

RE: [PHP] Forms: How-to not display it if user hits back?

2002-09-29 Thread John W. Holmes
PROTECTED] Subject: [PHP] Forms: How-to not display it if user hits back? I have the following scenario 1- user comes to page A, clicks a button to get to page B 2- Page B is a form the user fills and hits the submit button 3- form data is received and I use header() to send him back to page

[PHP] Forms and sessions

2002-08-15 Thread DonPro
Hi, How can I keep values in a from when using session_start() and later, the Back Button on my Browser after posting via POST? Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Forms problem?

2002-07-17 Thread Mark Colvin
I have a php script that queries a mysql db and build a form on a page for each row returned. Each form has four fields and a thumbnail of a JPEG. Below the image is a link to view the full image in a new window by using a javascript function. (No javascript jibes before I go any further, it was

Re: [PHP] Forms problem?

2002-07-17 Thread Jason Wong
On Wednesday 17 July 2002 19:17, Mark Colvin wrote: Misleading subject. Nothing to do with php or forms. [snip] mention that when I load this page, I get an IE error 'unterminated string constant' but the page does load correctly. Obviously there is a problem. What does 'load correctly'

[PHP] Forms not passing variables

2002-07-10 Thread Hopp3r
Hello all. I have a site that was backed up, before the box was reformatted and rebuilt. Apache and PHP were upgraded. I have since resored all of the files and DB's that make up my site. Now, in doing some testing, the html forms are not passing variables to the next page. Specifically,

Re: [PHP] Forms not passing variables

2002-07-10 Thread jepadilla
PROTECTED] cc: Subject:[PHP] Forms not passing variables Hello all. I have a site that was backed up, before the box was reformatted and rebuilt. Apache and PHP were upgraded. I have since resored all of the files and DB's that make up my site. Now, in doing some testing

[PHP] forms and files

2002-07-02 Thread Tyler Longren
Hi, I have a form kinda like this: form action=$PHP_SELF?option=Massaction=add method=POST enctype=multipart/form-data input type=file name=passcodeFile the rest of the form is there too. And $PHP_SELF is set to $PHP_SELF = $_SERVER[PHP_SELF] at the top of the page. When I select a

Re: [PHP] forms and files

2002-07-02 Thread Jason Wong
On Tuesday 02 July 2002 23:34, Tyler Longren wrote: Hi, I have a form kinda like this: form action=$PHP_SELF?option=Massaction=add method=POST enctype=multipart/form-data input type=file name=passcodeFile You really should use around your tag values. What you have is invalid HTML. the

Re: [PHP] forms and files

2002-07-02 Thread Tyler Longren
On Tue, 2 Jul 2002 23:45:56 +0800 Jason Wong [EMAIL PROTECTED] wrote: On Tuesday 02 July 2002 23:34, Tyler Longren wrote: Hi, I have a form kinda like this: form action=$PHP_SELF?option=Massaction=add method=POST enctype=multipart/form-data input type=file name=passcodeFile You

Re: [PHP] forms and files

2002-07-02 Thread Jason Wong
On Tuesday 02 July 2002 23:54, Tyler Longren wrote: that worked. I had to use _FILES instead of _POST I still get these errors though: Warning: fopen(, r) - Success in /usr/local/apache/htdocs/cj/aanr/admin/passcode_admin.php on line 151 Warning: stat failed for (errno=2 - No such file

[PHP] forms question

2002-06-25 Thread M.E. Suliman
Hi I'm busy with an order form in php. How would I display a text field only if a checkbox is checked. The reason for this is that if the user selects the product in the form and, how would I get to display the quantity field corresponding to that checkbox Any help would be appreciated.

Re: [PHP] forms question

2002-06-25 Thread Evan Nemerson
If you want to do it from PHP, then the forms will have to be seperate (PHP is server side...) You assign a value to a checkbox, then in the page you submit to, use something like if ( $_POST[$checkbox_name] == checked_value ) { ... } On Tuesday 25 June 2002 10:30 am, M.E. Suliman

Re: [PHP] forms question

2002-06-25 Thread 1LT John W. Holmes
I'm busy with an order form in php. How would I display a text field only if a checkbox is checked. The reason for this is that if the user selects the product in the form and, how would I get to display the quantity field corresponding to that checkbox

RE: [PHP] forms question

2002-06-25 Thread Lazor, Ed
I do what you're asking with Javascript. Lookup dynamic forms and you'll find a lot of examples. On Tuesday 25 June 2002 10:30 am, M.E. Suliman wrote: I'm busy with an order form in php. How would I display a text field only if a checkbox is checked. The reason for this is that if the user

Re: [PHP] forms question

2002-06-25 Thread Evan Nemerson
That would be the best idea, but he *is* asking on a PHP list... That's why i reminded him that PHP is server-side. On Tuesday 25 June 2002 13:02 pm, Lazor, Ed wrote: I do what you're asking with Javascript. Lookup dynamic forms and you'll find a lot of examples. On Tuesday 25 June 2002

[PHP] forms into database and visa versa

2002-05-17 Thread Dennis Gearon
***_PLEASE CC me as I am on digest_*** Anyone have a link or links to how to definitively make safe inserts to databases with form information? I'm thinking this has to do with add/remove slashes. BUT, I also think that it might be a good idea to write a function that adds slashes to all SQL

Re: [PHP] forms into database and visa versa

2002-05-17 Thread Geoff Hankerson
depending on your needs you could just create a .csv file (comma seperated text) that excel can read easily - Original Message - From: Dennis Gearon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 17, 2002 11:13 AM Subject: [PHP] forms into database and visa versa ***_PLEASE

Re: [PHP] forms into database and visa versa

2002-05-17 Thread Analysis Solutions
Anyone have a link or links to how to definitively make safe inserts to databases with form information? It's a good idea to validate all data you're sticking in before you do. For example, if you have a numeric field, you don't want the person to be able to submit letters in that field. So,

[PHP] passing variables between php forms

2002-05-09 Thread baldey_uk
Hi sorry to annoy you AGAIN, but i cant seem to get it working i think its something to do with the order that i put things in: #end of html and start of php script ?php #Take the Variables from enterdetails.php that are posted from an html form $firstname=$_POST['txtFirstName'];

Re: [PHP] passing variables between php forms

2002-05-09 Thread Bogdan Stancescu
What exactly goes wrong? Indeed, you _should_ have $_POST[testvar] available in the next page... The only problem I see is that you first echo the input and only then do you start the forms... which is an HTML problem, not a PHP one. Bogdan baldey_uk wrote: Hi sorry to annoy you AGAIN, but

Re: [PHP] passing variables between php forms

2002-05-09 Thread Jason Wong
On Friday 10 May 2002 07:41, baldey_uk wrote: Hi sorry to annoy you AGAIN, but i cant seem to get it working i think its something to do with the order that i put things in: #end of html and start of php script ?php #Take the Variables from enterdetails.php that are posted from an

[PHP] Forms

2002-04-29 Thread Arpan De
I created a simple html form with only one textbox a submit button as follows: form method=post action=form1.php input type=text name=fname input type=submit value=SUBMIT /form This is form1.php html body Hi ?php echo $fname; ? /body /html But I don't know why I am not getting the output. I

Re: [PHP] Forms

2002-04-29 Thread Jason Wong
On Tuesday 30 April 2002 01:25, Arpan De wrote: But I don't know why I am not getting the output. I am just getting the following error: Notice: Undefined variable: fame in d:\inetpub\wwwroot\php\Form1.php on line 3 In order to pass the Form values to a PHP page, I went through 3-4

<    1   2   3   4   >