On 16 November 2011 13:56, Tim Streater t...@clothears.org.uk wrote:
I'm looking at the source of a web sockets server and I see these various
forms:
ws://{$host}{$path}
HTTP/1.1 ${status}\r\n
Are these simply equivalent to:
ws:// . $host . $path
HTTP/1.1 . $status . \r\n;
and if
On 16 Nov 2011 at 14:27, Richard Quadling rquadl...@gmail.com wrote:
If you want to embed $array[CONSTANT], then the {} is used.
I use {} out of habit for non arrays. Not sure if there is an impact.
http://docs.php.net/manual/en/language.types.string.php#example-71
shows the use.
Oh.
On 11-11-16 09:27 AM, Richard Quadling wrote:
On 16 November 2011 13:56, Tim Streatert...@clothears.org.uk wrote:
I'm looking at the source of a web sockets server and I see these various forms:
ws://{$host}{$path}
HTTP/1.1 ${status}\r\n
Are these simply equivalent to:
ws:// . $host .
Andrew Ballard wrote:
On Wed, Jun 3, 2009 at 7:13 PM, PJ af.gour...@videotron.ca wrote:
Tom Chubb wrote:
2009/6/3 PJ af.gour...@videotron.ca:
The code:
...snip
div id=loginbox
    form name=login method=post action=? echo
$_SERVER['PHP_SELF'] ?
     Â
Shawn McKenzie wrote:
PJ wrote:
AngeloZanetti wrote:
Shawn McKenzie wrote:
PJ wrote:
PROBLEM 1 solved: errant divs removed; strange that they were
inhibiting entry of data into form field?
PROBLEM 2 not resolved: but the form was off the page and
clipped in
On Wed, Jun 3, 2009 at 11:55 AM, PJ af.gour...@videotron.ca wrote:
The code:
...snip
div id=loginbox
form name=login method=post action=? echo
$_SERVER['PHP_SELF'] ?
h2accegrave;s client br /input type=text
name=title value=? echo $user; ? size=10 /br /
mot de
2009/6/3 PJ af.gour...@videotron.ca:
The code:
...snip
div id=loginbox
form name=login method=post action=? echo
$_SERVER['PHP_SELF'] ?
h2accegrave;s client br /input type=text
name=title value=? echo $user; ? size=10 /br /
mot de passe br /input type=text
Tom Chubb wrote:
2009/6/3 PJ af.gour...@videotron.ca:
The code:
...snip
div id=loginbox
form name=login method=post action=? echo
$_SERVER['PHP_SELF'] ?
h2accegrave;s client br /input type=text
name=title value=? echo $user; ? size=10 /br /
mot de passe br
AngeloZanetti wrote:
Shawn McKenzie wrote:
PJ wrote:
PROBLEM 1 solved: errant divs removed; strange that they were
inhibiting entry of data into form field?
PROBLEM 2 not resolved: but the form was off the page and clipped in
upper right hand corner. What can be done to get it to
PJ wrote:
AngeloZanetti wrote:
Shawn McKenzie wrote:
PJ wrote:
PROBLEM 1 solved: errant divs removed; strange that they were
inhibiting entry of data into form field?
PROBLEM 2 not resolved: but the form was off the page and
clipped in upper right hand corner. What can be done to get
On Wed, Jun 3, 2009 at 7:13 PM, PJ af.gour...@videotron.ca wrote:
Tom Chubb wrote:
2009/6/3 PJ af.gour...@videotron.ca:
The code:
...snip
div id=loginbox
form name=login method=post action=? echo
$_SERVER['PHP_SELF'] ?
h2accegrave;s client br /input type=text
name=title
Hello,
on 05/20/2009 11:09 AM Paul M Foster said the following:
Both this class and Manuel Lemos' form generation class (from
phpclasses.org) will create beautiful forms for you. However, you may
find that the amount of [repetitive] typing you do will be equivalent or
greater than simply
-Original Message-
From: Manuel Lemos [mailto:mle...@acm.org]
Sent: 22 May 2009 09:56
To: Paul M Foster
Cc: php-general@lists.php.net; Angelo Zanetti
Subject: Re: [PHP] Forms validation and creation- easier solution?
Hello,
on 05/20/2009 11:09 AM Paul M Foster said the following
On Fri, May 22, 2009 at 04:56:01AM -0300, Manuel Lemos wrote:
Hello,
on 05/20/2009 11:09 AM Paul M Foster said the following:
Both this class and Manuel Lemos' form generation class (from
phpclasses.org) will create beautiful forms for you. However, you may
find that the amount of
Viva,
on 05/22/2009 10:36 AM Paul M Foster said the following:
IMHO, creating forms by hand is by no means simpler, especially if you
want to include browser side (Javascript) validation.
I mean, I am not masochist to create something that will give me more
work in the end to develop PHP
On May 20, 2009, at 2:03 AM, Angelo Zanetti wrote:
We have done quite a few projects and we are looking to find better
ways to
implementing forms.
This is fairly simple to roll-your-own.
I do it from metadata. I check MySQL metadata for data types,
lengths, and defaults. In addition, my
Hi!
Zend framework has a wonderful solution to solve this task. You can download
even the demo showing how to do this task
Best regards,
Alex.
2009/5/20 Angelo Zanetti ang...@zlogic.co.za
Hi all.
We have done quite a few projects and we are looking to find better ways to
implementing
_
From: Olexandr Heneralov [mailto:ohenera...@gmail.com]
Sent: 20 May 2009 09:08
To: Angelo Zanetti
Cc: php-general@lists.php.net
Subject: Re: [PHP] Forms validation and creation- easier solution?
Hi!
Zend framework has a wonderful solution to solve this task. You can download
:* 20 May 2009 09:08
*To:* Angelo Zanetti
*Cc:* php-general@lists.php.net
*Subject:* Re: [PHP] Forms validation and creation- easier solution?
Hi!
Zend framework has a wonderful solution to solve this task. You can
download even the demo showing how to do this task
Best regards,
Alex
[snip]
1. Easy creation of forms (fields and layout)
[/snip]
I posted a form function several months ago that will help you with
this. Just search the list archives
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, May 20, 2009 at 10:08:12AM +0300, Olexandr Heneralov wrote:
2009/5/20 Angelo Zanetti ang...@zlogic.co.za
Hi all.
We have done quite a few projects and we are looking to find better ways to
implementing forms.
Forms seem to be quite time consuming and repetitive.
-Original Message-
From: Paul M Foster [mailto:pa...@quillandmouse.com]
Sent: 20 May 2009 16:09
To: php-general@lists.php.net
Subject: Re: [PHP] Forms validation and creation- easier solution?
On Wed, May 20, 2009 at 10:08:12AM +0300, Olexandr Heneralov wrote:
2009/5/20 Angelo
On Wed, May 20, 2009 at 05:10:57PM +0200, Angelo Zanetti wrote:
-Original Message-
From: Paul M Foster [mailto:pa...@quillandmouse.com]
Sent: 20 May 2009 16:09
To: php-general@lists.php.net
Subject: Re: [PHP] Forms validation and creation- easier solution?
On Wed, May 20, 2009
Mark Pashia schreef:
I am fairly new to the php/mySQL combo and just noticed an unusual behavior
and don't know where to find the answer to fix this. It is probably common
knowledge, but not to a newbie.
If I fill in the fields of a form and hit the enter key to submit the
form, no
On Jan 24, 2008 3:34 AM, Mark Pashia [EMAIL PROTECTED] wrote:
If I fill in the fields of a form and hit the enter key to submit the
form, no variables seem to be passed along. If I use the submit button,
everything works perfectly. It seems that other forms on the web work with
the enter key
Some older browsers didn't send along the button name/value when you
hit enter, for a one-button form...
But I've never heard of one that failed to send anything at all...
It's almost for sure a browser issue though -- PHP doesn't really *do*
anything with the data it gets.
It just stuffs it
On Mon, 2008-01-21 at 23:15 -0500, nihilism machine wrote:
Why isnt this cleaning my form $_POST's
class forms {
var $UserInputClean;
// Forms to variables
function forms() {
if (count($_POST) 0) {
foreach($_POST as
It doesn't help to reset any values. The form data is being resent by
the browser itself, just if the user presses the submit button again
with the same data.
What you could do is mabye use a session to see if the particular user
has sent form data before.
/Fredrik Thunberg
Beauford skrev:
El Fri, 12 Jan 2007 03:27:12 -0500
Beauford [EMAIL PROTECTED] escribió:
Hi,
How do I stop contents of a form from being readded to the database
if the user hits the refresh button on their browser.
I have tried to unset/destroy the variables in several different
ways, but it still does
Beauford wrote:
Hi,
How do I stop contents of a form from being readded to the database if the
user hits the refresh button on their browser.
Perhaps a session variable that is set once the form is submitted.
Depending on the data you could also look at having a primary key in the
database.
This issue comes over and over again. The trick, as I learned from this
list, is to send a redirect to the browser to a confirmation page, so the
browser remembers the page redirected to and completely ignores the page
that made the redirection so that neither a refresh nor going back to it
confused as to why giving them a null value doesn't work.
Thanks to all.
-Original Message-
From: Satyam [mailto:[EMAIL PROTECTED]
Sent: January 12, 2007 8:21 AM
To: Beauford; PHP
Subject: Re: [PHP] Forms and destroying values
This issue comes over and over again. The trick
again.
Hope that makes it clearer.
-Stut
-Original Message-
From: Satyam [mailto:[EMAIL PROTECTED]
Sent: January 12, 2007 8:21 AM
To: Beauford; PHP
Subject: Re: [PHP] Forms and destroying values
This issue comes over and over again. The trick, as I
learned from this list, is to send
On Fri, 2007-01-12 at 11:23 -0500, Beauford wrote:
So the answer is, there is no way to destroy the values. Question then, what
is unset() used for as it doesn't seem to do anything? With a language as
good as PHP I though there would be some way to do this. I have got a
workaround, but
Subject: Re: [PHP] Forms and destroying values
This issue comes over and over again. The trick, as I
learned from this list, is to send a redirect to the browser
to a confirmation page, so the browser remembers the page
redirected to and completely ignores the page that made
On Fri, 2007-01-12 at 17:36 +0100, Németh Zoltán wrote:
Beauford,
The unset() function is for session variables, which are remembered by
the server even after the script finished running, that's their
purpose. Your variables are not session variables but normal
variables.
Wrong! Please go
2007. 01. 12, péntek keltezéssel 11.43-kor Robert Cummings ezt írta:
On Fri, 2007-01-12 at 17:36 +0100, Németh Zoltán wrote:
Beauford,
The unset() function is for session variables, which are remembered by
the server even after the script finished running, that's their
purpose. Your
transaction.
Satyam
- Original Message -
From: Beauford [EMAIL PROTECTED]
To: 'PHP' php-general@lists.php.net
Sent: Friday, January 12, 2007 5:23 PM
Subject: RE: [PHP] Forms and destroying values
So the answer is, there is no way to destroy the values. Question then,
what
Message-
From: Stut [mailto:[EMAIL PROTECTED]
Sent: January 12, 2007 11:38 AM
To: Beauford
Cc: 'PHP'
Subject: Re: [PHP] Forms and destroying values
Beauford wrote:
So the answer is, there is no way to destroy the values. Question
then, what is unset() used for as it doesn't seem to do
On Sun, 2006-10-29 at 13:15 +0530, Karthi S wrote:
hi,
i am newbie to web programming. i have a basic doubt in using forms.
Is it advisable to use multiple forms performing various functions in a
single web page.
what are the pros and cons of using that.
Please forgive me if this is
There's nothing wrong with multiple forms on a single page, as long as all id
attributes in all elements are unique on the entire page, not just within the
form. Just make sure that each form is self-contained with its own submit
button and such. Only the form whose submit button is clicked
Is anyone else getting multiple copies of posts?
On Oct 29, 2006, at 9:52 AM, Larry Garfield wrote:
There's nothing wrong with multiple forms on a single page, as long
as all id
attributes in all elements are unique on the entire page, not just
within the
form. Just make sure that each
yes, but then again, I've already mentioned this, and have seen some posts now
an then mention the subject... :)
On Sunday 29 October 2006 21:26, Ed Lazor wrote:
Is anyone else getting multiple copies of posts?
On Oct 29, 2006, at 9:52 AM, Larry Garfield wrote:
There's nothing wrong with
On Thu, April 27, 2006 9:56 am, Jason Gerfen wrote:
I have come upon a problem and am not sure how to go about resolving
it. I have an web form which is generated dynamically from an
imported
file and I am not sure how I can loop over the resulting post
variables
within the global $_POST
Jason Gerfen wrote:
I have come upon a problem and am not sure how to go about resolving
it. I have an web form which is generated dynamically from an
imported file and I am not sure how I can loop over the resulting post
variables within the global $_POST array due to the array keys not
Martin Zvarík wrote:
Jason Gerfen wrote:
I have come upon a problem and am not sure how to go about resolving
it. I have an web form which is generated dynamically from an
imported file and I am not sure how I can loop over the resulting
post variables within the global $_POST array due to
Jason Gerfen schrieb:
Martin Zvarík wrote:
Jason Gerfen wrote:
I have come upon a problem and am not sure how to go about resolving
it. I have an web form which is generated dynamically from an
imported file and I am not sure how I can loop over the resulting
post variables within the
[snip]
Probably a stupid one but anyway...
In PHP. Is it possible to point to a variable with the HTML form name by
which it was posted from?
Example:
//point to the variable with something like or somenthing???
$AddNew.SomeVar
form name=AddNew method=post action=? $PHP_SELF ?
$SomeVar = Add;
take the following code and do some experimentation:
?
echo 'pre';
echo POST vars: \n;
var_dump($_POST);
echo GET vars: \n;
var_dump($_GET);
echo '/pre';
?
stick that in your page that contain the form and start playing with
different form fields, different form fields names, etc, etc -
At 3:45 PM +0300 4/21/06, William Stokes wrote:
Hello,
Probably a stupid one but anyway...
In PHP. Is it possible to point to a variable with the HTML form name by
which it was posted from?
Example:
//point to the variable with something like or somenthing???
$AddNew.SomeVar
form
On Fri, April 21, 2006 7:45 am, William Stokes wrote:
In PHP. Is it possible to point to a variable with the HTML form name
by
which it was posted from?
The FORM name attribute was an add-on for Javascript client-side.
It is not transmitted by HTTP.
PHP never sees it.
Or do I just have
[snip]
Hi can any one show me how make another form appear below another once the
1st form has been submitted.
[/snip]
post to PHP_SELF and test for population of original form parts
if('' != $_POST['name'] etc.){
echo all of the other form parts;
}
--
PHP General Mailing List
Mark wrote:
Hi can any one show me how make another form appear below another once the
1st form has been submitted.
[not really a PHP solution...]
You can do like this: the 'SUBMIT' button of the first form only makes
visible the (hidden) DIV where the second form is, and only *that*
Try reading the PHP FAQ and looking for the answer about a generic form
response using $_POST.
On Mon, May 2, 2005 9:09 pm, Lisa A said:
Does anyone know of a good easy php script or Form that we can use with
Front Page.
We need a form to get results, that actually sends the results in a
Does anyone know how to get a particular option to display in a drop menu?
select name=category id=category
option selected=true value=Option ValueOption Value/option
option value=line-/option
option value=value1 value1/option
option value=value2 value2 /option
On Mon, 21 Mar 2005 10:04:23 -0600, Marquez Design
[EMAIL PROTECTED] wrote:
Greetings,
Does anyone know how to get a particular option to display in a drop menu?
Perhaps, do db query first, then for each option (perhaps as a foreach
or something):
echo option name=\whatever\ value=\\;
At 12:04 PM 3/21/2005, Marquez Design wrote:
Greetings,
Does anyone know how to get a particular option to display in a drop menu?
select name=category id=category
option selected=true value=Option ValueOption Value/option
option value=line-/option
option value=value1
The way I did:
# taking values from DB
$query = mysql_query(select * from VALUES)
$result = mysql_fet_array($query);
#create an array of all values of dropdow menu
$values = arra('value1', 'value2', 'value3', 'value4');
# create SELECT form using for loop
echo 'select name=category
Refer to the following line numbers:
01 ?php
02 // Start of PHP code - Extract values from form.
03 /* Other values read */
04 $n=$_POST['n'];
05
06 // Pass the data from the form to lightcurve_csharp
07 $command=./lightcurve_csharp $a $i $e $lomega $bomega $lambda $n;
08
PHPDiscuss - PHP Newsgroups and mailing lists wrote:
I am new to this or any newsgroup in PHP, as well as PHP itself, so this
question is probably rather elementary. I have a form which on clicking
on the Submit button calls up a compiled program on the server that is
executed and writes
Leon Poon wrote:
Refer to the following line numbers:
01 ?php
02 // Start of PHP code - Extract values from form.
03 /* Other values read */
04 $n=$_POST['n'];
05
06 // Pass the data from the form to lightcurve_csharp
07 $command=./lightcurve_csharp $a $i $e $lomega $bomega
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 09 December 2004 22:41, Ben C wrote:
I have a form which has a text box which then stores in MySQL. When I
write seperate paragraphs and try and then view what I wrote it
--- Ford, Mike [EMAIL PROTECTED] wrote:
echo nl2br(htmlspecialchars($text)) is my usual
mantra for this.
nl2br will give you back the correct formatting, but
will leave br/'s in the output.
I just went through this issue the other day, what I
found worked for me was:
Wil Hitchman wrote:
I created a web form in PHP and used a couple of email addresses. The
only email address that worked when I submitted to the form (for testing
purposes) was my Yahoo address. My AOL, hotmail and other work addresses
did not work. Can someone tell me why?
Technically,
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 10 December 2004 11:30, Stuart Felenstein wrote:
--- Ford, Mike [EMAIL PROTECTED] wrote:
echo nl2br(htmlspecialchars($text)) is my usual
mantra for this.
nl2br will
Ben C wrote:
I have a form which has a text box which then stores in MySQL. When I
write seperate paragraphs and try and then view what I wrote it lumps
it all together in one paragraph when I echo. I am sure I am doing
something simply wrong. Anyone have any ideas?
put pre tag around it. and
Ben C wrote:
I have a form which has a text box which then stores in MySQL. When I
write seperate paragraphs and try and then view what I wrote it lumps
it all together in one paragraph when I echo. I am sure I am doing
something simply wrong. Anyone have any ideas?
The line breaks are
What is a connect_db file?
- Original Message -
From: bigmark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, October 10, 2004 11:33 PM
Subject: Re: [PHP] forms
Thanks-- i got that going-GREAT ! now i have a form that creates the
database and tables, any ideas how i can get
try this :
$link = mysql_connect($host, $user, $pass);
Note : No SINGLE quotes.
In PHP, quotations are as follows
$host = 'localhost';
$a = '$host';
$b = $host;
echo $a;
that prints $host
echo $b;
that prints localhost.
HTH
-Minuk
- Original Message -
From: bigmark [EMAIL PROTECTED]
Thanks-- i got that going-GREAT ! now i have a form that creates the
database and tables, any ideas how i can get this info to change the
connect_db file so that it doesnt have to be done manually.
Minuk Choi [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
try this :
$link =
Thanks-- i got that going-GREAT ! now i have a form that creates the
database and tables, any ideas how i can get this info to change the
connect_db file so that it doesnt have to be done manually.
See fopen(), fwrite(), and fclose():
http://php.net/manual/en/ref.filesystem.php
Not sure exactly
Hello Kacey,
Friday, January 16, 2004, 11:33:22 AM, you wrote:
KAM What I have is an issue with posting forms with Dynamic ListBoxes.
KAM What happens is when you fill the form out, and hit submit, it validates the
KAM form .. if there is a required field not filled out, it comes back and gives
Hi,
Tuesday, December 2, 2003, 9:54:33 PM, you wrote:
B Hi i am very new to PHP so need some help !
B i have a form which allows the user to put in 2 team names and then displays
B them, at the moment it displays them side by side but i need to insert V
B (versus) in the middle--how can i do
On 28 November 2003 14:36, Dave Carrera wrote:
Hi List,
I have a dynamically generated form with inputs with names that
create arrays i.e.:
input name=fname[]
input name=flab[]
input name=fplc[]
The extra bits for the inputs are omitted deliberately for
this question but
exists in
example will be most appreciated.
Dave C
-Original Message-
From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]
Sent: 28 November 2003 14:50
To: 'Dave Carrera'; [EMAIL PROTECTED]
Subject: RE: [PHP] Forms and Arrays
On 28 November 2003 14:36, Dave Carrera wrote:
Hi List,
I have
On 28 November 2003 17:22, Dave Carrera wrote:
Thank you for clearing up my rather lame explanation.
So how can I process $_POST[dynamic-name][user-entered-value]
arrays to give
me my desired output:
fname0 = value flab0 = value fplc0 = value
fname1 = value flab1 = value fplc1 = value
Dave -
...and then Dave Carrera said...
%
% Thank you for clearing up my rather lame explanation.
%
% So how can I process $_POST[dynamic-name][user-entered-value] arrays to give
% me my desired output:
%
% fname0 = value flab0 = value fplc0 = value
Do you really want a variable called
[snip]
This is probably more of a javascript question but thought someone here
might have an answer.
I have a form in a pop up windoe I want this form data to be submited to
the
window that opened the popup - how can I do this? I have tried setting
the
target attribute on the form tag to
Matthew Oatham wrote:
Hi,
This is probably more of a javascript question but thought someone here
might have an answer.
I have a form in a pop up windoe I want this form data to be submited to
the window that opened the popup - how can I do this? I have tried
setting the target attribute on
Matthew Oatham wrote:
Hi,
This is probably more of a javascript question but thought someone here
might have an answer.
I have a form in a pop up windoe I want this form data to be submited to
the window that opened the popup - how can I do this? I have tried
setting the target attribute on
If I understand your question correctly it sounds like you want to
populate a database on Server A with data residing in a database on
server B via a form hosted on server A *grin*. Obviously this is
tedious, and if there are a lot of entries then I would suggest writing
a script to populate and
- Original Message -
From: Robert Cummings [EMAIL PROTECTED]
To: Kris Reid [EMAIL PROTECTED]
Cc: PHP List [EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 12:25 AM
Subject: Re: [PHP] Forms
If I understand your question correctly it sounds like you want to
populate a database
As I mentioned already you would be best not using Javascript and
performing the submission via PHP. I wrote the following snippet in the
past to do something similar to what you are asking. Study it and see if
you can adapt it to your own needs. You should be able to loop on the
form submission
On Sunday 20 July 2003 12:37, Jason Giangrande wrote:
I have a question about forms and PHP. Here's what I'm looking to do.
I'm trying to set up a spell checker that checks text entered in a form,
but I want the check results to show up in a different window so that
the user can change the
Yasir Malik wrote:
I'm working with forms using PHP and HTML. I've noticed that there is a
limit of the length of a URL that can sent to browser (I'm passing many
many things as arguments across pages). Is there a way to get across the
limit or am I doing something wrong?
Yasir
Submit your form
* Thus wrote Yasir Malik ([EMAIL PROTECTED]):
I'm working with forms using PHP and HTML. I've noticed that there is a
limit of the length of a URL that can sent to browser (I'm passing many
many things as arguments across pages). Is there a way to get across the
limit or am I doing something
Not sure why you don't want to submit the form. But if you really really
don't want to submit the form then you have to use javascript.
If you're willing to submit the form, then this is relatively simple,
depending on how you want to display the data.
if you're willing to submit, then step
This is done with javascript... without getting too off topic... JS can
get the contents of the textarea, and submit it via get (maybe post as
well) to another (pop-up) window. the pop-up window can highlght
misspelled words, and even make dynamic changes to the content in the
first window.
* Thus wrote Justin French ([EMAIL PROTECTED]):
This is done with javascript... without getting too off topic... JS can
get the contents of the textarea, and submit it via get (maybe post as
well) to another (pop-up) window. the pop-up window can highlght
misspelled words, and even make
Thanks guys. I think I'll try it first as Chris suggested and see how
that goes. Thanks again.
Jason
On Sun, 2003-07-20 at 00:55, Justin French wrote:
This is done with javascript... without getting too off topic... JS can
get the contents of the textarea, and submit it via get (maybe post
For print $PHP_SELF, or $_SERVER['PHP_SELF'] use:
?php echo $_SERVER['PHP_SELF']; ?
or the shortcur sintax:
?=$_SERVER['PHP_SELF']?
(if short_open_tag = On in php.ini)
- Original Message -
From: Beauford.2005 [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Sunday, July 06, 2003
Dan Anderson wrote:
Be careful when using PHP self. Not all servers support it. If you're
planning on using this script over and over on multiple servers you may
find creating a variable is helpful.
$some_variable = the_script_name.php;
Then, where you would use PHP_SELF just echo (or
Please don't mislead users! That's plain untrue.
I assure you that server administrators can turn off the variables such
as PHP SELF. It may not be common but it does happen.
-Dan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dan Anderson wrote:
I assure you that server administrators can turn off the variables such
as PHP SELF. It may not be common but it does happen.
The only way to do that would be editing the PHP source. That's above
the IQ of any sysadmin who would want to do that.
--
The above message is
On Wed, 02 Jul 2003 14:58:39 +0100, Greg Wiley [EMAIL PROTECTED]
wrote:
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
[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
1 - 100 of 205 matches
Mail list logo