>
> So, I had this all wrong before. Basically, I need two forms, right? One
>> on my originating page, and one on the page within the frameset I want to
>> pass the values to. Correct?
>>
>> My form, which I named my_search has one input field, which I named query.
>> In the javascript, I put in
On Aug 15, 2008, at 11:32 AM, Dan Shirah wrote:
In the of my page, I have this:
function submitForm(var1,var2) {
top.mainFrame.document.my_search.text1.value = var1;
top.mainFrame.document.my_search.text2.value = var2;
top.mainFrame.document.my_search.submit();
document.search_form.submi
>
> In the of my page, I have this:
>
>
> function submitForm(var1,var2) {
> top.mainFrame.document.my_search.text1.value = var1;
> top.mainFrame.document.my_search.text2.value = var2;
> top.mainFrame.document.my_search.submit();
> document.search_form.submit();
> }
>
>
> If I type in a word
On Aug 15, 2008, at 7:33 AM, Dan Shirah wrote:
I apologize for my ignorance, I don't really know much about
javascript. When I add all that into my form page, when I submit the
form, it just replaces the page I was on with the form results, rather
than in the new frame page. I'm assuming I need
>
> I apologize for my ignorance, I don't really know much about
> javascript. When I add all that into my form page, when I submit the
> form, it just replaces the page I was on with the form results, rather
> than in the new frame page. I'm assuming I need to put the url for the
> frameset page i
At 4:06 PM -0500 8/14/08, george wrote:
Thank you for taking the time to help me with this, I really appreciate it!
- jody
Make it easy on yourself and try this:
http://sperling.com/examples/search/
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com http://earthstones
On Thu, Aug 14, 2008 at 3:43 PM, Dan Shirah <[EMAIL PROTECTED]> wrote:
>> > Hello,
>> >
>> > I've got a website here: http://beta.menashalibrary.org/about
>> >
>> > On every page, i've got a search box at the top. This search box
>> > searches
>> > the library's web catalog. The problem is, when so
On 14 Aug 2008, at 21:34, Jody Cleveland wrote:
I've got a website here: http://beta.menashalibrary.org/about
On every page, i've got a search box at the top. This search box
searches the library's web catalog. The problem is, when someone
searches, it takes them away from the site. What I'd
>
> > Hello,
> >
> > I've got a website here: http://beta.menashalibrary.org/about
> >
> > On every page, i've got a search box at the top. This search box searches
> > the library's web catalog. The problem is, when someone searches, it
> takes
> > them away from the site. What I'd like to do is t
On Thu, Aug 14, 2008 at 4:34 PM, Jody Cleveland <[EMAIL PROTECTED]>wrote:
> Hello,
>
> I've got a website here: http://beta.menashalibrary.org/about
>
> On every page, i've got a search box at the top. This search box searches
> the library's web catalog. The problem is, when someone searches, it
I believe it's mentioned somewhere in the manual you can't do that.
func_get_arg() always return a copy. You can workaround this using an array.
Robert Meyer wrote:
Hello,
Using: PHP Version 5.0.3
I build the following function:
function Set4HTMLOut() {
$C = func_num_args();
for (
ECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, August 29, 2004 11:41 AM
Subject: Re: [PHP] Passing variable on include
> Xongoo!com: Central unit wrote:
> > Hi,
> >
> > I have to pass variable on include
> > include("includes/include.php");
> >
>
Xongoo!com: Central unit wrote:
Hi,
I have to pass variable on include
include("includes/include.php");
include("includes/include.php?name=$name");
wouldn't work.
How do I do that? Cokies are not an option, btw.
Code in includes/include.php is executed in the scope of the including
file, so all va
Hiya
It could need setting register_globals =on in your php.ini
if after that still problems then you may need to look into sessions and in
particular session_start() and $_SESSION['varname'] and make sure the
variables are global so that more than one script can use them.
Hope this steers you
Pass if via the URL
Link
On the display page, access the data you passed by...
$_GET['picture_data']
Do a google search for "get query".
Ron Clark wrote:
Hello all,
I have a php script that reads all the files in a directory (pictures), the
outputs each picture as a link to be displayed in t
You just need to add a question mark, the name of the variable, an equal
sign and its value (properly encoded):
echo '';
In the receiving script, you can read the value using $_GET['myvalue'];
Hope this helps!
Marco
--
php|architect - The magazine for PHP Professionals
The first
Is this a direct copy from your code?
> echo $_GET['modo']." echo $_GET['color']." echo $_GET['size']." tags
see if that helps
Martin
-Original Message-
From: Saci [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 6:09 AM
To: [EMAIL PROTECTED]
Subject: [PHP] passing variable via
You are passing the variables correctly. If that's your actual code
echo $_GET['modo']." (note the closing > ) - PHP is doing what you told it, and your
browser is confused by the output. If PHP were the problem you'd probably see an
error message.
Also, upgrade to 4.2.2 please :)
Regards,
Co
http://myaddress/php/mypage.php?modo=123&color=red&size=3
Just separate name/value pairs with ampersand (&).
HTH
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Saci" <[EMAIL PROTECTED]> 07/30/02 04:09PM >>>
I can pass on
I just found out the $_POST['language'] is always assigned the value Array.
Since a user must choose either of the options and not both, I would rather
do this without arrays, is there another way?
"Haddad Said" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
Yes I changed that, but now it always echoes EngP=0
"Mark Heintz Php Mailing Lists" <[EMAIL PROTECTED]> wrote in
message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Thu, 27 Jun 2002, Haddad Said wrote:
>
> > in query.php i have this piece of code;
> >
> > echo "
> >
> > one
> > two
> >
>
On Thu, 27 Jun 2002, Haddad Said wrote:
> in query.php i have this piece of code;
>
> echo "
>
> one
> two
>
>
>
> ";
>
> and in test2.php i have this;
>
> if ($_POST['language'] = 1)
> {$lang = "EngP=1";}
> else {$lang = "EngP=0";}
> echo $lang ;
>
> But it always echoes EngP=1 no matter wha
I still cant get it right,
in query.php i have this piece of code;
echo "
one
two
";
and in test2.php i have this;
if ($_POST['language'] = 1)
{$lang = "EngP=1";}
else {$lang = "EngP=0";}
echo $lang ;
But it always echoes EngP=1 no matter what I choose, what is wrong here??
"Erik Price
On Wednesday, June 26, 2002, at 02:51 PM, Haddad Said wrote:
> Hi, i am having a problem passing variables from a drop down menu in a
> form;
>
>
>
> one
> two
>
You should do it like this (be sure to properly quote your attributes,
and use the 'value' attribute of the 'option' tag):
p
nt: Wednesday, June 05, 2002 5:10 PM
> To: Scott Hurring; Php-General (E-mail)
> Subject: Re: [PHP] Passing variable to new page and pulling
> the rest of
> info from database
>
>
> Or simply just validate it's an integer, like it should be,
> like you would
>
-General (E-mail)" <[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 4:30 PM
Subject: RE: [PHP] Passing variable to new page and pulling the rest of info
from database
> Ahhh! quote that ID number before using it in a query! :)
>
> // for mysql
> mysql_quote($_GET['ID&
[EMAIL PROTECTED]]
> Sent: Wednesday, June 05, 2002 4:29 PM
> To: Igor Portnoy; [EMAIL PROTECTED]
> Subject: Re: [PHP] Passing variable to new page and pulling
> the rest of
> info from database
>
>
> SELECT * FROM table WHERE ID = $_GET['ID']
>
> Then create a
SELECT * FROM table WHERE ID = $_GET['ID']
Then create a page to display all of that information. Look at the mysql
functions and learn some PHP. We can't help you without knowing what's in
your table and how you want it displayed, etc...
So keep learning and reading and you'll figure out how to
> Here is scenario that I am working on but have a problem.
> I have 10 thumbnail images on the page with information for
> them created from database.
> (I am pulling more info about that image from database, but
> on this page I only display "Name of Image" and "Author of
> image
Tag the variables onto the url:
http://mysite.com/newpage.php?firstvar=somevalue&secondvar=othervalue&;.
for arrays
?layer[]=a&layer[]=b&layer[]=c.
or use sessions.
> Here is scenario that I am working on but have a
problem. I have 10
> thumbnail images on the page with information for t
Hello,
store value in hidden field in form, like this:
when form is submitted field id contains required value.
or use cookie (but here is test if cookie enabled)
Regards
Michal Dvoracek [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubs
cant say for sure, but I dont play around with rawencode and addslasses for urls, just
use urlencode()
echo "
test
";
--
Chris Lee
[EMAIL PROTECTED]
""Claudia Smith"" <[EMAIL PROTECTED]> wrote in message
9duqke$9g1$[EMAIL PROTECTED]">news:9duqke$9g1$[EMAIL PROTECTED]...
Currently I have
On Monday 05 March 2001 17:43, you wrote:
> using PHP 3.x on Linux, I've always been able to pass along a variable
> like http://www.domain.com/index.php3?foo=bar
>
> and then I could print out this with something like
> echo $foo;
> would print out "bar"
>
> I've recently installed the latest PH
33 matches
Mail list logo