Re: [PHP] Passing variable to a page in a frameset

2008-08-15 Thread Dan Shirah
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 in

Re: [PHP] Passing variable to a page in a frameset

2008-08-15 Thread Jody Cleveland
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

Re: [PHP] Passing variable to a page in a frameset

2008-08-15 Thread Dan Shirah
In the head of my page, I have this: script type=text/javascript 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(); }

Re: [PHP] Passing variable to a page in a frameset

2008-08-15 Thread Jody Cleveland
On Aug 15, 2008, at 11:32 AM, Dan Shirah wrote: In the head of my page, I have this: script type=text/javascript function submitForm(var1,var2) { top.mainFrame.document.my_search.text1.value = var1; top.mainFrame.document.my_search.text2.value = var2;

Re: [PHP] Passing variable to a page in a frameset

2008-08-15 Thread Dan Shirah
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 this:

[PHP] Passing variable to a page in a frameset

2008-08-14 Thread Jody Cleveland
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 take what a person

Re: [PHP] Passing variable to a page in a frameset

2008-08-14 Thread Bastien Koert
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 takes

Re: [PHP] Passing variable to a page in a frameset

2008-08-14 Thread Dan Shirah
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 take what a

Re: [PHP] Passing variable to a page in a frameset

2008-08-14 Thread Stut
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

Re: [PHP] Passing variable to a page in a frameset

2008-08-14 Thread george
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 someone searches, it

Re: [PHP] Passing variable to a page in a frameset

2008-08-14 Thread tedd
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

[PHP] Passing variable number of parameters by reference

2005-05-12 Thread Robert Meyer
Hello, Using: PHP Version 5.0.3 I build the following function: function Set4HTMLOut() { $C = func_num_args(); for ($I = 0; $I $C; $I++) { $A = func_get_arg($I); echo 'I['.$I.']('.strlen($A).'): '.$A.'br /'; $A = htmlspecialchars($A); echo

Re: [PHP] Passing variable number of parameters by reference

2005-05-12 Thread Marek Kilimajer
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

[PHP] Passing variable on include

2004-08-29 Thread Xongoo!com: Central unit
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. -- Tadas Talaikis [EMAIL PROTECTED] http://www.xongoo.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Passing variable on include

2004-08-29 Thread Marek Kilimajer
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

Re: [PHP] Passing variable on include

2004-08-29 Thread Xongoo!com: Central unit
: 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); include(includes/include.php?name=$name); wouldn't work. How do I do that? Cokies are not an option

Re: [PHP] Passing variable from webpage to php (newbie?)

2003-03-20 Thread Bobby Rahman
you in right direction *warning im a newbie too so you may wait for some more replies to confirm what im saying* Bobster From: Joe Kupiszewski [EMAIL PROTECTED] Reply-To: Joe Kupiszewski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Passing variable from webpage to php (newbie

[PHP] Passing variable from webpage to php (newbie?)

2003-03-19 Thread Joe Kupiszewski
I think I already tried to post once, so sorry if this is a duplicate, but I don't see my first attempt. I am trying to do what should be a relatively simple and basic task. I've got a php script/page that has a switch/case selection statement in it. Obviously, depending on what value a

[PHP] passing variable question

2002-11-11 Thread Ron Clark
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 the main frame of the html page. All of that works fine. I want to be able to pretty up the picture out put by placing the picture into a html table so it is

Re: [PHP] passing variable question

2002-11-11 Thread Marco Tabini
You just need to add a question mark, the name of the variable, an equal sign and its value (properly encoded): echo 'a href=myurl?myvalue=' . urlencode ($value) . ''; In the receiving script, you can read the value using $_GET['myvalue']; Hope this helps! Marco -- php|architect

Re: [PHP] passing variable question

2002-11-11 Thread John Nichel
Pass if via the URL a href=yourlink.php?picture_data=whateverLink/a 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

[PHP] passing variable via url ( newbye question)

2002-07-30 Thread Saci
I can pass one variable using the url on this way http://myadress/php/mypage.php?modo=123 and to read i have the code echo $_GET['modo'].BR; That's work fine on 4.21 How can I pass and read 3 variables instead of one ? I nedd to pass mode = 123 color= red size=3 using the url I tried

Re: [PHP] passing variable via url ( newbye question)

2002-07-30 Thread Martin Clifford
http://myaddress/php/mypage.php?modo=123color=redsize=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 one variable

RE: [PHP] passing variable via url ( newbye question)

2002-07-30 Thread cteubner
You are passing the variables correctly. If that's your actual code echo $_GET['modo'].BR; echo $_GET['color'].BR; echo $_GET['size'].BR; then you need br (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

RE: [PHP] passing variable via url ( newbye question)

2002-07-30 Thread Martin Towell
PROTECTED] Subject: [PHP] passing variable via url ( newbye question) I can pass one variable using the url on this way http://myadress/php/mypage.php?modo=123 and to read i have the code echo $_GET['modo'].BR; That's work fine on 4.21 How can I pass and read 3 variables instead of one ? I

Re: [PHP] passing variable arguments from select

2002-06-27 Thread Haddad Said
I still cant get it right, in query.php i have this piece of code; echo form action='test2.php' action='post' select name='language' option value='0'selected='yes'one/option option value='1'two/option /select input type=text name=query input type=submit name=submit /form; and in test2.php i

Re: [PHP] passing variable arguments from select

2002-06-27 Thread Mark Heintz PHP Mailing Lists
On Thu, 27 Jun 2002, Haddad Said wrote: in query.php i have this piece of code; echo form action='test2.php' action='post' select name='language' option value='0'selected='yes'one/option option value='1'two/option /select input type=text name=query input type=submit name=submit /form;

Re: [PHP] passing variable arguments from select

2002-06-27 Thread Haddad Said
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 form action='test2.php' action='post'

Re: [PHP] passing variable arguments from select

2002-06-27 Thread Haddad Said
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

[PHP] passing variable arguments from select

2002-06-26 Thread Haddad Said
Hi, i am having a problem passing variables from a drop down menu in a form; from action=test.php action=post select name=example option selected one/option option two/option /form So how will the values of $example be assigned in test.php? THanks -- PHP General Mailing List

Re: [PHP] passing variable arguments from select

2002-06-26 Thread 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; from action=test.php action=post select name=example option selected one/option option two/option /form You should do it like this (be sure to

[PHP] Passing variable to new page and pulling the rest of info from database

2002-06-05 Thread Igor Portnoy
Hello, I am passing a variable to the new page, when user clicks on the link. Something like that: a href=showimage.php?ID=38img src=/some/image.jpg/a How can I extract all other information out of my database for that ID in the next page (showimage.php)? Thanks

Re: [PHP] Passing variable to new page and pulling the rest of info from database

2002-06-05 Thread 1LT John W. Holmes
to do it. Your question is way to broad for any help... ---John Holmes... - Original Message - From: Igor Portnoy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 2:40 PM Subject: [PHP] Passing variable to new page and pulling the rest of info from database Hello

RE: [PHP] Passing variable to new page and pulling the rest of info from database

2002-06-05 Thread Scott Hurring
: 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 page to display all of that information. Look at the mysql

Re: [PHP] Passing variable to new page and pulling the rest of info from database

2002-06-05 Thread 1LT John W. Holmes
] 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']); --- Scott Hurring Systems Programmer EAC Corporation [EMAIL

RE: [PHP] Passing variable to new page and pulling the rest of info from database

2002-06-05 Thread Scott Hurring
: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 do with any user input... There is no mysql_quote() function...or am I

[PHP] Passing variable to the next page

2002-06-04 Thread Igor Portnoy
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. For example: + + + Some Image + + + Name of Image: Blah Author of

Re: [PHP] Passing variable to the next page

2002-06-04 Thread Pushkar Pradhan
Tag the variables onto the url: http://mysite.com/newpage.php?firstvar=somevaluesecondvar=othervalue;. for arrays ?layer[]=alayer[]=blayer[]=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 them

RE: [PHP] Passing variable to the next page

2002-06-04 Thread David Freeman
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, the

[PHP] passing variable to anti spam mailto script

2002-05-26 Thread Greg Wright
Hello All, What is the best way (or opinions rather) to pass variables to a anti spam script. This is used in place of mailto links in webpages, but am looking for any simple way to pass information so more than one address can easily be used in the script, I could use mysql or other, however

[PHP] Passing Variable

2002-04-17 Thread Ben C.
I know that people have asked about this before, so let me appologize ahead of time but I need quick help. I have a url which looks like http://www.domain.com/remove/index.php?id=test. I use the echo function ? echo $id; ? to show the word test. What I want to do is send this variable along

Re: [PHP] Passing Variable

2002-04-17 Thread Michal Dvoracek
Hello, store value in hidden field in form, like this: input type=hidden name=id value=?php echo $_GET['id']; ? 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] Passing variable with slashes in URL

2001-05-16 Thread Claudia Smith
Currently I have a problem with IE. The IE browser will not bring up my encoded url. When clicking on the link I either receive a script error or nothing happens. The issue is with the double quotes. IE does not recognized the encoded character %22 for quotes. IE does seem to process single

Re: [PHP] Passing variable with slashes in URL

2001-05-16 Thread Chris Lee
cant say for sure, but I dont play around with rawencode and addslasses for urls, just use urlencode() echo a href='index.php?test=. urlencode($text) .test2=. urlencode($test2) .'test/a ; -- Chris Lee [EMAIL PROTECTED] Claudia Smith [EMAIL PROTECTED] wrote in message 9duqke$9g1$[EMAIL

[PHP] passing variable via url

2001-03-05 Thread Kansas Territory
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 PHP4 onto a Windows2000 server, I'm trying the same thing

Re: [PHP] passing variable via url

2001-03-05 Thread Christian Reiniger
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 PHP4 onto