Ask a Question related to PHP Development, Design and Development.
-
Zapp #1
Form Script Question
Hi
Can anyone tell me why my form script fails at this line
<form action="$_SERVER['PHP_SELF']" method="POST">
when running on my ISP which is using PHP version 4.3.2,
Configure Command './configure' '--prefix=/usr/local'
'--with-apache=/home/shells/chriss/Apachetoolbox-1.5.66/apache_1.3.27'
'--enable-exif' '--enable-track-vars' '--with-calendar=shared'
'--enable-magic-quotes' '--enable-trans-sid' '--enable-wddx' '--enable-ftp'
'--enable-inline-optimization' '--enable-memory-limit'
'--with-openssl=/usr/local/ssl'
but works on my Linux box running running PHP version 4.3.1.
Configure Command './configure' '--with-config-file-path=/etc/httpd'
'--with-mysql=/usr' '--with-exec-dir=/usr/bin' '--with-apxs=/usr/sbin/apxs'
'--with-java=/usr/java/jdk1.3.1' '--disable-cli' '--includedir=/usr'
'--with-gdbm' '--with-db' '--enable-track-vars' '--with-zlib-dir=/usr/'
'--with-gd=/usr'
I'll supply more inf if needed.
Thanks in advance
Bill Zapp
Zapp Guest
-
Form Mail Script
Hello, could anyone tell me exactly how to edit the script to make it work and where to place the files on my website directories? I've been... -
Coldfusion mail script and flash form question
Suggestions anybody? I have a basic form in flash which calls a cfm script, but somehow the cfm script does not pass on the form content to the... -
Generic form script?
Is there someplace that I can download a generic CGI script that I can use to process forms from PDF? Here's what I need: 1- a generic script that... -
form upload images using php form script
Hi, I normally use CGI to process my html forms. However, this time I need/want to use PHP. Can anyone point me in the direction of a php... -
Newbie question: I need an ASP script to store data from a form.
I want to have a HTML form that the user fills in and clicks submit. I then want the data to be stored in an Access datatbase. I've loooked and... -
Rudolf Horbas #2
Re: Form Script Question
Zapp,
If You're in HTML, the line should read> Can anyone tell me why my form script fails at this line
> <form action="$_SERVER['PHP_SELF']" method="POST">
<form action="<?=$_SERVER['PHP_SELF']?>" method="POST">
If this in an echo statement or a variable ect, it should be:
<form action=\" . "$_SERVER["PHP_SELF"] . "\" method=\"POST\">
or shorter:
<form action=\"$PHP_SELF\" method=\"POST\">
Thats all I can do without the rest of the code, but it looks like it's
easy to fix ...
rudi
Rudolf Horbas Guest
-
Rudolf Horbas #3
Re: Form Script Question
> echo <<<END
Here You go.> <form action="$_SERVER['PHP_SELF']" method="POST">
It's the quotes around the $_SERVER array index.
Neither '' nor "" will work.
If you want to use the heredoc syntax, use
<form action="$_SERVER[PHP_SELF]" method="POST">
or just
<form action="$PHP_SELF" method="POST">
rudi
Rudolf Horbas Guest
-
Rudolf Horbas #4
Re: Form Script Question
(Sorry, first message was a reply to myself ...)
Here You go.> echo <<<END
> <form action="$_SERVER['PHP_SELF']" method="POST">
It's the quotes around the $_SERVER array index.
Neither '' nor "" will work.
If you want to use the heredoc syntax, use
<form action="$_SERVER[PHP_SELF]" method="POST">
or just
<form action="$PHP_SELF" method="POST">
rudi
Rudolf Horbas Guest
-
Rudolf Horbas #5
Re: Form Script Question
(Sorry, first message was a reply to myself ...)
(darn, again! whats mozilla up to? :-( )
Here You go.> echo <<<END
> <form action="$_SERVER['PHP_SELF']" method="POST">
It's the quotes around the $_SERVER array index.
Neither '' nor "" will work.
If you want to use the heredoc syntax, use
<form action="$_SERVER[PHP_SELF]" method="POST">
or just
<form action="$PHP_SELF" method="POST">
rudi
Rudolf Horbas Guest
-
Zapp #6
Re: damn, i didn't post _here_!
Rudi
No problem with the reposts, just glad to see you're not using MS ;)
Anyway, your fix worked thank you very much for taking the time to respond!
Zapp
"Rudolf Horbas" <rhorbas@hypotext.de> wrote in message
news:bhj9uk$nrm$4@svr8.m-online.net...> Sorry zapp, Mozilla keeps posting to my own reply, 'though I'd marked
> Your post. Guess You'll find this anyway, but it's embarassing for me ...
>
> anyone know 'bout this moz behaviour? or am i making some stupid mistake?
>
> rudi
>
Zapp Guest



Reply With Quote

