[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
[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
[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
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
[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
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
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
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
[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
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
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
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
, 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
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
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
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
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
(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
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
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\;
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\;
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
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
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] .
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
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:
-
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
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
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
: [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
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
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
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
: 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
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
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:
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
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.
, 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
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
--
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
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
://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
://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
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
--- 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
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
--- 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
?
[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
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
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
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:
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
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
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
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:
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
]
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
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
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
() 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
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
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,
[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
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
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.
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
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
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
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
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
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\
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
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
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
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
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
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
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
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
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'
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,
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
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
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
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
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
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.
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
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
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
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
***_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
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
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,
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'];
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
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
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
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
201 - 300 of 368 matches
Mail list logo