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, bu
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
# end of php script back into html
Are your details correct?
If i put the echo or INPUT type outside of the
Hi Jason,
Thank you for your prompt response. Yeah, you are right; that was were the
problem was. I incorporated your code & it got executed perfectly.
Thank you once again,
Regards,
Arpan
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> On Tuesday 30 April 2002 0
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
I created a simple html form with only one textbox & a submit button as
follows:
This is form1.php
Hi
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 p
Use an array
1
2
3
$numberofitemids=count($itemid);
echo $itemid[0]; // == 1
echo $itemid[1]; // == 2
echo $itemid[2]; // == 3
cheers
-Original Message-
From: Alia Mikati [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 2:20 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Forms in
Hello
I hope u can help me with this problem. I dont know if it is possible to
do it. I'm using PHP and XML to generate the folowing HTML:
...
1
...
2
...
3
...
...
I want to use PHP to count the number of $itemid in this file. Is it
possible? And how?
Thx a lot
--
PHP General Mailing List
On Thursday, April 11, 2002, at 09:17 PM, Jennifer Downey wrote:
> Now I have a weird problem. I am using this code and can't understand
> why it
> doesn't work.
> When the script is run it returns a blank page, no error or done.
>
> here it is and any help would be appreciated.
>
> if(($type
Hi all,
Now I have a weird problem. I am using this code and can't understand why it
doesn't work.
When the script is run it returns a blank page, no error or done.
here it is and any help would be appreciated.
if(($type == book) or ($type == weapon)){
echo "";
echo "";
echo "Put
You have to put quotes around the value or else you won't get anything pass
the space.
WRONG:
RIGHT:
-Original Message-
From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]]
Sent: March 24, 2002 3:10 PM
To: S; [EMAIL PROTECTED]
Subject: RE: [PHP] forms and inputs
Hi continuing
You can check how it works here:
http://kulchitski.com/btl/btl.php?lang=eng&page=talkroom_submit
If anyone knows how to overcome the problem, please help.
Thanks,
Vlad
-Original Message-
From: S [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 24, 2002 2:34 PM
To: Vlad Kulchitski; [EMAIL PRO
You need to add quotes (" ") arround the PHP variable that displays your
text.
In your case, it should be something like:
-john
On Sun, 24 Mar 2002, Vlad Kulchitski wrote:
> Hi,
>
> Can anyone suggest anything regarding the following problem.
>
> Basically, I ask the user to type a fe
oom_submit
If anyone knows how to overcome the problem, please help.
Thanks,
Vlad
-Original Message-
From: S [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 24, 2002 2:34 PM
To: Vlad Kulchitski; [EMAIL PROTECTED]
Subject: RE: [PHP] forms and inputs
Your input tag should look like this:
Your input tag should look like this:
-Original Message-
From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]]
Sent: March 24, 2002 1:39 PM
To: [EMAIL PROTECTED]
Subject: [PHP] forms and inputs
Hi,
Can anyone suggest anything regarding the following problem.
Basically, I ask the user to
Hi,
Can anyone suggest anything regarding the following problem.
Basically, I ask the user to type a few sentences, in
and on the next page I show everything
s/he typed asking "Are you sure you want to submit this...
Once clicked "YES" all data is being taken to the next page for
FINAL submis
You 've missed this ")" .
Change it to print( form("tt.php", form_radio("group","parameters") ) );
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
One more suggestion: prior to exiting the form_radio() function, print
$output to determine if it's the contents you expect
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 7:16 AM
To: 'Ron'; [EMAIL PROTECTED]
Subject: RE: [PHP
-Original Message-
From: Ron [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 7:06 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Forms
This is the first time that I have tried to conquer a form in PHP(which I
obviously am not doing) so that I can have a total PHP script page and move
aw
This is the first time that I have tried to conquer a form in PHP(which I
obviously am not doing) so that I can have a total PHP script page and move
away from HTML.
Here is my code as followed by my book (PHP Black Book) some variables have
been changed
"radio",
"question" => "What section i
I think you have to draw a line somewhere... you can't give them
everything they want, becasue the costs involved in making these
"simple" tools available is massive. And at every step where you give
them more control, you lose a little more control.
Do you REALLY want them creating tables? Thi
If you want to do this the hard way (for you) then you can create a form
which asks for the number of rows/columns and pops up another form with
a table and rows x columns input boxes - then you can build the table
code and maybe even insert it in the original code via JavaScript
(assuming tha
I am completely stuck, and I am preying that someone will be able to help me.
I have set up a php web form that allows one of my users to write columns for my site.
This works great, I do a search and replace to replace /n with because they
don't know much about html. I have managed to get t
ruary 25, 2002 6:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Forms
I have the following php code to asks for a new student to fill out a
registration form. Using php, take what the user enters and put it into
the "students" table. But when i select * from students in mysql,
Hi there, i have the following php code that works fine. But when i
click on the submit button and then it takes me to the next page, it
displays the following error mesage at the top
Warning: MySQL: A link to the server could not be established in
c:\program files\nusphere\apache\nsdocs\mug_worl
Your submit button does not have name="submit" set. So $submit is never
being set.
Also your html is full of errors, I would clean that up and put it thru a
validator, try html tidy (www.w3c.org).
And, make sure that formvalidation() is passing true, is that fails the
form will never be submi
On Tuesday 26 February 2002 02:31, Chiew, Richard wrote:
> I have the following php code to asks for a new student to fill out a
> registration form. Using php, take what the user enters and put it into
> the "students" table. But when i select * from students in mysql, it
> didn't show, why?
I have the following php code to asks for a new student to fill out a
registration form. Using php, take what the user enters and put it into
the "students" table. But when i select * from students in mysql, it
didn't show, why?
REGISTRATION FORM
REQUIRED QUESTIONS:
Hi Sean:
Sean Hurley wrote:
>
> Agree
> I Do Not Agree
>
> if ($agree) /* (I have tried this also with ($isset = $agree)) */
> { header ("location: ?link=form");
> }
> else
> { header ("location: /LETS");
> }
Several things here. You're probably having problems because you defined
agree as
n Hurley' <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>Subject: RE: [PHP] Forms and IE
>Date: Mon, 11 Feb 2002 15:48:17 +1100
>
>might be the header("location..."); bit - you might need to specify the
>full address
>
>-Original Message-
>From: Sean Hurley
Answered below:
- Original Message -
From: "Sean Hurley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 10, 2002 11:40 PM
Subject: [PHP] Forms and IE
>
> Please forgive me if this has been covered before. I have searched the
list
> an
might be the header("location..."); bit - you might need to specify the
full address
-Original Message-
From: Sean Hurley [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 3:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Forms and IE
Please forgive me if this has be
Please forgive me if this has been covered before. I have searched the list
and could not find reference to a similar problem.
I am completetly new to PHP and I am stuck. I am creating a very simple
form. Essentially the user agrees or disagrees to a message. If the user
agrees, they are sent
Hello PHP Group,
Thanks for the information on the books. I have a questions about a forms
page.
I wish to create a page using PHP to create a page that is submitted to my
email
address. Is this similar to HTML? Also, if you have any good examples out
there
on the web - I'd like to take a look.
]
- Original Message -
From: "Matt Obstgarten" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 02, 2002 3:48 PM
Subject: [PHP] PHP Forms
> Hello,
> I am new to PHP. I have PHP (cgi version) configured on my
> machine running XP Pro and IIS. It
Hello,
I am new to PHP. I have PHP (cgi version) configured on my
machine running XP Pro and IIS. It works fine. The first script I wanted
to write was the ever-useful feedback form script where the contents of
a form are e-mailed to the webmaster. I am sure that I have a working
script b
I'm using the POST method.
We may be on the right track though, there may have been a problem with the
insertion of the data, rather than the retrieval. However, I still don't
know what could be causing the problem.
"JøRg Vidar Bryne" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">new
"Jeremy Reed" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This is the problem: The user tries to submit a news article of 2+ pages
> (approx 4400 characters) but the article gets truncated to about 4050
> characters. Is there some sort of limitation on PHP
I do forms like this
The if line just checks to see if any data has been passed if it has it
prints what you send else if shows the form
-Original Message-
From: Ben Clumeck [mailto:[EMAIL PROTECTED]]
Sent: 06 December 2001 17:14
To: [EMAIL PROTECTED]
Subject: [PHP] Forms and
It's good practice to check that needed variables were passed at the
top of the page.
if($name) {
normal display
exit
} else {
error display
exit
}
To take this further, you should verify that not only was the
required data sent, but that it was in the corre
what about checking for some mandatory field and if it doesn't exist,
display an error message. something like:
-Original Message-
From: Ben Clumeck [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 07, 2001 9:14 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Forms and Results with PH
I have a form that a user can put his contact info. This form posts to a
file called results.php. The results.php file has a mail() command and the
echo (i.e. ) to show the user confirmation of what he
has submitted.
However, if someone goes directly to results.php it will show Name: blank
and
In some browsers that is what will happen on a form, is that will process the
infromation twice.
--- "Richard S. Crawford" <[EMAIL PROTECTED]> wrote:
> I've done something similar like this:
>
> < a href="javascript:window.back()" >Click here to go back< /a >
>
> In the situations in w
I've done something similar like this:
< a href="javascript:window.back()" >Click here to go back< /a >
In the situations in which I've used it, the form data from the previous
page is still in the form fields.
Potential downsides of this approach: the data has not yet been
processed
I think I'm making this harder or more confusing than it really needs to be.
I have a form that is spread out over four pages. I want to be able to give
the user the opportunity to return to page 1 from page 3, for example, by
providing a regular link on page 3 to return to page1. When they cli
I've set up a news database with a PHP front-end and am using MS SQL Server.
The news table is set up correctly with the pertinent field being of type
'text' which, according to documentation, should support well over 10 megs
of text data.
This is the problem: The user tries to submit a news arti
I have a submission form distributed over 5 pages. When the user hits the
"back" button in the browser on one of the pages to make changes on a
previous page, all fields are emptied. This is only when I have a session
running. When I use the same pages without the session, the data stays in
the fo
I have a submission form distributed over 5 pages. When the user hits the
"back" button in the browser on one of the pages to make changes on a
previous page, all fields are emptied. This is only when I have a session
running. When I use the same pages without the session, the data stays in
the fo
Hi,
How can be possible to call other functions (that have a html pages) from a
first function that also have a html with a form and pass all html variables
without losing them?
I've a problem that from a html form I'm losing all html variables and this
is happening because this form is located
I have "wrapped around" my web page, my form tag -- my pages are
auto-expanding -- that is, always flush with the left, right, top and bottom
of the users browser... in IE - the form tag (wrapped around the page)
doesn't cause a problem -- however, in NS (4x - 6x) there is some additional
space at
stat()
> -Original Message-
> From: Randy Johnson [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 13, 2001 4:09 PM
> To: scott [gts]; php
> Subject: RE: [PHP] forms and IP numbers
>
>
> I would like to pull the date and time of the creation of a file via a php
I would like to pull the date and time of the creation of a file via a php
script and compare it to the current time.
How do I do this?
TIA
Randy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
valid...
> -Original Message-
> From: Marc van Duivenvoorde [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 13, 2001 6:10 AM
> To: Php general lijst
> Subject: [PHP] forms and IP numbers
>
>
> A friend of mine found a bug in my messageboard code, this way he can p
Security - www.whitecrown.net
*/
- Original Message -
From: Marc van Duivenvoorde <[EMAIL PROTECTED]>
To: Php general lijst <[EMAIL PROTECTED]>
Sent: Friday, July 13, 2001 6:09 AM
Subject: [PHP] forms and IP numbers
| A friend of mine found a bug in my messageboard code, this way
A friend of mine found a bug in my messageboard code, this way he can post
with other (than in my database) nicknames from a local form. Now I want to
have the formhandler do a check from where the form is sent. If it is not
sent from my own webserver it has to display an error message.
Thanks
""Chad Guilette"" <[EMAIL PROTECTED]> wrote in message
000701c0d962$d28fb670$0100a8c0@optimus">news:000701c0d962$d28fb670$0100a8c0@optimus...
> I'm currently working on a project and I've come across a problem which
I'm
> sure has been discussed several times before but I still need some
> assist
IL PROTECTED]]
> Sent: Thursday, May 10, 2001 11:11 AM
> To: 'Chad Guilette'; [EMAIL PROTECTED]
> Subject: RE: [PHP] Forms and PHP_SELF
>
>
>
> surely all you need to do is put the php right at the top, and say
> if (isset($variable) { print this message }
> else {
sunny
-Original Message-
From: Chad Guilette [mailto:[EMAIL PROTECTED]]
Sent: 10 May 2001 16:07
To: [EMAIL PROTECTED]
Subject: [PHP] Forms and PHP_SELF
I'm currently working on a project and I've come across a problem which I'm
sure has been discussed several times before b
I'm currently working on a project and I've come across a problem which I'm
sure has been discussed several times before but I still need some
assistance on it.
I have a page with a form whose action is $PHP_SELF so the form and the form
action are all in the same pagethis works fine but in t
mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 01 May, 2001 10:32 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Forms with Field Arrays and JavaScript
Hello,
I see you sent this back in January. I'm having the very same problem.
Could you PEEEAAASSEEE tell me how to a
$HTTP_POST_VARS["myvar".$i];
}
Hope it helps.
Cheers, Diego.
-Original Message-
From: Utopia [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 01 May, 2001 10:32 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Forms with Field Arrays and JavaScript
Hello,
I see you sent this back in Ja
> If I run this form using IE, hitting the Return/Enter key submits the form
> but the 'ok' variable is not set; it just redraws the form. If however, I
> uncomment the third echo line (the one for Name2), then hitting the
> Return/Enter key does have the desired effect in IE. In NS, the first
I've observed a difference between how IE and NS interact with even simple
forms. With IE, hitting the RETURN or ENTER key usually but not always
triggers the submit button, but almost never with NS. Is this behavior
controllable by my scripts?
For example:
test form
\n";
echo "Name1:\n";
> Don wrote:
>
> > Hello,
> >
> > Has anyone run into problems using PHP to access a database (MySQL) and
> > build a form. I am trying to build a form that contains anywhere from
> > 10 to 20 tables. Each table will contain drop down menus, text boxes
> > and text areas. As you may envision, t
Don wrote:
> Hello,
>
> Has anyone run into problems using PHP to access a database (MySQL) and
> build a form. I am trying to build a form that contains anywhere from
> 10 to 20 tables. Each table will contain drop down menus, text boxes
> and text areas. As you may envision, this form can
Hey Don,
I'm sure most of us have experienced problems with PHP and MySQL, but of
a programming error, not usually a "bug". Do you have some code you
could share? I'm using PHP and MySQL with lots of forms and things are
great.
jack
Don wrote:
>
> Hello,
>
> Has anyone run into problems using
Hello,
Has anyone run into problems using PHP to access a database (MySQL) and
build a form. I am trying to build a form that contains anywhere from
10 to 20 tables. Each table will contain drop down menus, text boxes
and text areas. As you may envision, this form can be quite lengthy.
I popu
> Can i call a function from the action line of a form?
No.
PHP lives on the web-server. What you describe, I think, is executing a PHP
function inside the browser.
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Vol
Hiya,
Can i call a function from the action line of a form?
ie:
Hi,
You can also try Manuel Lemos's form class, which can handle all this and
many more. Check:
http://phpclasses.upperdesign.com/browse.html/package/1
>From the class description:
Class that generates HTML forms supporting:
- XHTML compliant output.
- Keyboard navigation support:
* Attachmen
with the password you can use the funcio srtlen:
$number_of_chars=strlen($password);
Where are the right password? On a database??
In the site http://www.hotscripts.com you'll find a lot of script exemplos
in PHP and JavaScript to verify if a e-mail typed is right.
Augusto Cesar Castoldi
On W
how can i make somthing that nows if there are 6-12 chars in a password
field. Also how do you make somthing the know is the password, and the
password confermation is the same. And finnally i need a script that
know if they filled all the form fields, and one that know if they put
and "@" in ther
e.g.
>
Johannes
"Victor Hamutenya" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi, my name is Victor from Namibia, I do web development with PHP, I
> hapenned to find your email address on one of the PHP sites on the Net,
> as one of the contributor
Hi, my name is Victor from Namibia, I do web development with PHP, I
hapenned to find your email address on one of the PHP sites on the Net,
as one of the contributors on the PHP notes.
Can you please, if it is possible, tell me how to write in a form field
with PHP script. Like in Javascript
Agreed. Just thought I'd throw it out there for discussion.
"Now talk amongst yourselves."
Cheers.
Clive
> -Original Message-
> From: Alex Black [mailto:[EMAIL PROTECTED]]
> Sent: January 18, 2001 3:59 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP
Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522
> From: [EMAIL PROTECTED] (Clive Cartlidge)
> Newsgroups: php.general
> Date: 18 Jan 2001 12:42:33 -0800
> Subject: RE: [PHP] Forms!
>
> Alex,
>
> True ... to a point. A signed applet has access to re
5-415-0340
> -Original Message-
> From: Alex Black [mailto:[EMAIL PROTECTED]]
> Sent: January 18, 2001 3:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Forms!
>
>
> you'd need a java applet to do that... I actually had one
> made, but you
> can
uringstudio.com
vox+510.666.0074
fax+510.666.0093
Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522
> From: [EMAIL PROTECTED] ("Fredrik Arild Takle")
> Newsgroups: php.general
> Date: 18 Jan 2001 08:11:40 -0800
> Subject: [PHP] Forms!
>
> I
I know this isn't the right place to ask this question, but...
Anybody know how i can make/find a wysiwy (what you see is what you get) online html
editor (like the one Hotmail has!) ...
I'm gonna use it in a newsgroup (which supports rich text)!
Any tips anyone?
NOTE! I'm not a part of this
Hi! I was wondering if someone knows, or can think of a way to go around
this problem i have.
The thing is i am working with a form with a field array. Each field is
something like:
When i receive the posted data, I can access the "myfields" array. This is
fine.
The problem is within my form i
301 - 379 of 379 matches
Mail list logo