Passing A Parameter From An HTML Page To A PHP Page
I want to pass a language value (EN/FR/DE etc.) from an Index HTML page to a PHP page with a language code in the call, so that the PHP page can select texts in that language. I would like to to it from an unordered list item if possible by extending the link ... <li><a href="scripts/pricelist.php???>Pricelist[/url]</li>
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
Passing Variables From A Page To An ASP Page?
I have a site using a PHP CMS and I need it to use an ASP module from another site but I would like to use a frame so it looks like it is still in the same site. I need to pass a username variable from a form in in the PHP webspace (where the domain is pointing) to a page in an ASP webspace (using a subdomain not related to the main domain). I created a frame page in the php hosting with a 1px top frame and the main frame pointing to the asp page but of course the variable is not being passed.....if I put the ASP connection code on the frameset page it doesn't recognize it because the hosting is a Unix/PHP hosting only. My question to you is: Can a variable be passed from the php to the ASP webspace using some other technique? I just need to have the ASP module showing as if it is in the PHP.
View Replies !
View Related
HTML Web Page Hyperlink To Php Web Page
I am still having a problem parsing a html page with php. Code in my HTML is <? php echo '<a href="index.php">Home</a><br /> <a href="login.php">Login</a><br /> ' ?> However the link is to the Login page is: file:///C:/Program%20Files/Apache%20Group/Apache2/htdocs/TeeJayUu/login.php I am using PHP 5.0.2, Apache 2.0.52, MySQL 4.0.21, and Windows XP SP2. All pages are in the htdocs folder and the following instructions have been followed: - Copy php5apache2.dll to Apache's module dir and rename it to mod_php5.so; - Copy php5ts.dll to Apache's bin dir. Finally, add the following line to your httpd.conf file: LoadModule php5_module modules/mod_php5.so Apache has been stopped and restarted. Help - I am lost for what else to do. I want to keep this local until I have got it working.
View Replies !
View Related
If Page = 'about' Show The About.html Page?
I wanted to do some kind of PHP script so that if the current page the viewer is trying to view is called index.php?page=about then it will use the php script to embed with an i-frame the about.html file into a cell in my web page's table. Basically, so that the whole page stays the same other than one cell of the table which is dynamic depending on the status of the index.php?page=whatever. Code:
View Replies !
View Related
Send Value From CSS Html Page To PHP Page
help me to find a way or script to pass value "digit" from CSS html page to php page which has funtion to accept value and search in database. for example, in CSS rollover image map. if a user select on particular place, that should call PHP page as well as send value to php page.
View Replies !
View Related
Passing Value To Different Page
i have a page home.php which has a dropdown menu for the user to select an institution and a Go button. once the user selects an option, a new page named institution.php will be opened which will display information about the institution which was selected previously. i do not want to have different pages for each institution, so that's why i have one page to display the information according to the option selected in home.php. the problem is, when the user selects an option and click Go, the institution.php doesn't show any data from the db about the institution selected, not even the images that i have. can anyone tell me what's wrong? Code:
View Replies !
View Related
Html Page To Another Php Page
I have an html + javascript page which contains a form used to collect and send data like this: <quote> <form name="formlist" action="proposemove.php" method="post"> <table align=center width=280> <script> ...... ..... document.write('<td width=60 align=center>'); document.write('<input type="text" name="movewhite['); document.write(i); document.write(']" size=5 style="height:21px"></td>'); document.write('<td width=60 align=center>'); document.write('<input type="text" name="moveblack['); document.write(i); ..... .... </script>
View Replies !
View Related
[HELP PLEASE] Passing Variable To New Page
I am having hard time passing the variable to the next page. May be you can help me. Let me explain: I am using mySQL database to store information about images (ID, name, author, description, etc). I am pulling some of the information to create this (look at the example here: http://www.gibsonusa.com/test/page/index.php) Now, I want a new window appear when user clicks on the image. I have achieved it with the following script: echo "<script language="JavaScript">"; echo" function pop1() {"; echo" window.open("info.php?prod_id=$result[0]"); }"; $result[0] is variable that stores id of the image in database echo "</script>"; I am calling this function in the following manner: echo"<img onclick="pop1();""; You can see the result if you click on the image. The new page opens up, BUT the id (product_id in this case) value is not passed to the next page correctly. If you click on the first or second image on the first page it shows that the ID is the same for both of them. However if you look at the source code you can see that the ids are assigned correctly. The same thing happens if you click on any image that says “no image available” (I am using different script to generate those). It seems that the script picks up and stores in the memory the value of an ID of the last image generated with the script (I don’t know if that make sense). Oh, by the way the contents of info.php that I am calling in the script above are as following: <? $myid = $_GET['prod_id']; echo" Product ID: $myid<br>"; ?> What am I doing wrong? Can you help? Thank you.
View Replies !
View Related
Passing A Variable To A Page
Is it possible to pass a varialble to a page using just PHP/HTML. The object is to create a agenda page, with information comming from MySql, based on the choise of month in the index page in a different frame, i.e. the month is selected in frame 1. Now i want to sent the choice of the user to a page, to be shown in frame 2, that is created with PHP, and use the variable in the MySql query.I know this can be done using java, but i would like to avoid that.
View Replies !
View Related
Passing Strings To Another Page
when this code sends the category to the next page it only sends part of the information.. ex… if the selection consist of 1 word its fine but if it consists of 2 words it only sends the first word >>>”network card” sends the word “network” and not “network card” and if its “monitor” and since its 1 word its fine.. What am I doing wrong.. I’m kind of new to php and if you could let me know it would be greatly appreciated. I think my confusing is with the format of this line perhaps where the quotes and slashes go, not sure. Other wise this code does work. I can see it in the address field that it separates the selection but need to send the whole thing as 1 word. <php echo "<a href="displaylist.php?cmd=".$row["CATEGORY"]."">". $row["CATEGORY"]." (".$row["ENTRIES"].")</A>"; ?>
View Replies !
View Related
Passing Big Arrays To Another Page
I'm having a little problem on my advanced search system with large amounts of results, when trying to pass them to another page. Tried to use the serialize function but when the results reach a number, for instance, of 300 the link will not handle that. It works for small resultsets. When user search the database for (example) stores in "New York" we get 256 results. Now I want to give the user the chance to search on these results, the stores found in the former query that sell "bread", which would take the user to another page called "advanced search for store features". This to avoid the use of big forms for these advanced searches, where I've created a degree set of search pages (I have about an overall 250 features to search). The main problem seems to pass the array to the other page when large ammounts of data are set on this array, which I'll call here as $storeIDs. When the results are small, the serialize and unserialize function will do the job. Is there a way of going through this in other manner?
View Replies !
View Related
Passing More Than One Variable To The Next Page?
I've got a page with product info on it. The same page also has a recordset of variables. I've got a button which has been written using php something like: <? print"<a href="write_review.php?PID=$product_id">img etc...?> and I've got $product_id = $_GET['PID']; at the top of the page! This passes the product ID to the next page so that I can use it! How would I pass another variable too using the same button? I've tried just adding &title=$product_title, but it doesn't seem to work? I've already got $product_title = $_GET['title']; at the top of the page under the first one.
View Replies !
View Related
Passing An Array From One Page To Another?
Is it possible to pass an array from one PHP window to another? I have a form where some choices are made by checking boxes, a large number of boxes. And the results of the checks are held in an array. I would love to have the resulting query populate a new pop-up JS window, but I cannot figure out how to pass an array.
View Replies !
View Related
Passing The Variables To More Than One Page
I have an initial page 'page_one.php' that sends the data to another one - 'page_two.php' using form. It sends a couple of variables collected from the user input. Now....'page_two.php' has header function before any html that is either skipped or executed based on the user selection. If it doesn't come to header everything is fine, but if it does - header redirects 'page_two.php' to 'page_three.php'. Now, I want to be able to view all the selected variables in 'page_one.php' in my php code in 'page_three.php'. In another words, how do I pass the variables to page_three.php if it's not declared in action='...' located in 'page_one.php'?
View Replies !
View Related
Passing A Variable Into A Another Page
I have a list that comes in during a while statement: Jane john pete ..ect and i have a hyperlink so i can view their stats... and i want to past their name so i can get it in the next page...but the variable is not comming up: <a href=info.php?name=$name>".$name."[/url] this is what I get: http://localhost/mdo_main/info.php?name=
View Replies !
View Related
Passing These Values To Next Page!
I can't seem to get these values to pass to the next page, any ideas? I know this is normally simple but i'm lost with it now. Need some fresh eyes: Soil Level should be a number. I can echo it on the page, BUT when i pass it to the next page it's just blank. PHP Code:
View Replies !
View Related
Passing Through A Variable From Url To Page
I have a php landing page and I'm trying to use a tracking code that would let me dynamically pass through part of the url of this page (like the number 6264) to a point on the page, such as in part of a hyperlink that's posted on the page. Does anyone know if this is possible? Ideally, I want to be able to access this page using a query string/tracking code that would include a 4-5 character variable that could be anything really, and it would make whatever that variable is, show up at any point on the page through the use of a token. I want to pass this variable through in an affiliate link. This has gotta be a simple piece of code that does this. Does anyone know off-hand how someone would do this?
View Replies !
View Related
Passing A Variable To Another Page?
I'm writing a script for advertisers to signup to get a text link on my website. I'm using a verification page, to make sure they've entered in their information correctly. I need the data to go from signup.php --> verify.php --> complete.php. I'm able to get the data from signup.php --> verify.php with <form method="post" action="verify.php">, but how can I pass normal variables from verify.php --> complete.php?
View Replies !
View Related
Passing Value Trough A 3rd Page
I was looking on the web and I can't find what I'm looking for or I don't really understand. Let take the example of the login script. The user enter his user ID and password and then if it match redirect to another page. Now, when he click on a link he would then go to that page, how can I verify is user id and password again on the 3rd page and so on ? I know it's something easy but I'm don't understand this.
View Replies !
View Related
Passing Variables From One Page To Another
I need to take a set of variables from a form, pass them to another form, and finally collect all variables submitted into a final form, where it can be submitted. For instance, the first page asks the user which "web package" they like.. they select and go to another page, which says, "You selected the ___ package, now select your favorite design." They select there design, hit continue, and go to the final page that says, "You selected the __package, __design, and it costs $__ dollars (hidden values) Then they hit submit and all that info is sent via email.
View Replies !
View Related
Passing A Javascript Value To A New Page
I am needing to make a section in a form that allows for multiple check boxes to be selected and then and most importantly it has to be writen to a database . basicly I would like to be able to do is one of two things , the preferable is to check which boxes are ticked and then slot them into data1 data2 and data3 in the database my other alternative and less prefered is to put them all into one field and seperate the values with a / or , the script bellow pretty much does what i want except it echo's the responce in an alert when you click the output button what I need this script to do is run the script as I submit the form , and then pass the value's over to the processing page so that I can assign them to a variable and slot em into the database Code:
View Replies !
View Related
Passing Values To Next Page
I have a page that allows users to choose from checkboxes, each with text next to the three checkbox options. If users don't choose from one of the checkboxes then i don't want the text to appear on the next page. But if others have been chosen i want them to show. Maybe i need another elseif in the statement. Code:
View Replies !
View Related
Passing Info From One Page To Another
I have a dynamically generated list of check boxes with ids email1, email2, up to the end of the list of addresses. This list is then passed to the next page where all the addresses are concatenated and added to a database. At least that's the theory. I can't figure out how to dynamically get all the $_POST[emailx] variables, with x being 1, 2, to the end of the list.
View Replies !
View Related
Passing As URL Such As Page?id=100 To A 4 Script
I am passing variable such as page.php?id=100 to a php script. When I run the script with the id hard coded it works. It uses x template and displays information in the database just fine. It is just that I need to reprode this script times 21 and dont want to have 21 copies of the same script on the server. I need to be able to pass the variable and an id to the script so that I can use one script to do the job. I will also be using the same form 21 times. I just need the PHP to recognize the difference between the id's I pass to it for each page. Code:
View Replies !
View Related
Passing Objects Form One Page To Another
Is it possible to transfer objects derived from a class form one page to another? I made 2 testscripts: person.php ------------------------------------- <?php class person { private $_name; public function setName($name) { $this->_name = $name; } public function getName() { return $this->_name; } } $p = new person(); $p->setName("Jim"); $safep = urlencode(serialize($p)); header("Location:person2.php?data=".$safep); exit; ?> person2.php --------------------------------- <?php class person { private $_name; public function setName($name) { $this->_name = $name; } public function getName() { return $this->_name; } } $x = unserialize(urldecode($_GET['data'])); echo $x->getName(); ?> But this does not work for me....
View Replies !
View Related
Array Values Not Passing To Next Page
I have a search form which has list box where in the user could select multiple values and a text box for date field.When the user selects multiple selection, the query works fine and displays according to selection only on the first page, but when they hit the next page the query displays the results for all selection. I 'm displaying 25 records/page. But it works fine for the date field and the next , previous links display according to the date value. I 'm not sure why the value of the array is not passed. PHP Code:
View Replies !
View Related
Passing More Than One Word Variables To Php Page
i wrote a search page for my site (searching through a mysql database) but when i type in more than one word (eg "item three") in the search field it gets passed to the page as a single word ("item"). Are there any workarounds for this? the code is below.( houseproudlancs.co.uk/search.php ) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- background="./images/background.jpg" --> <body bgcolor="#640000"> <?php $search_for = $_GET['for']; $search_category = $_GET['category']; global $search_for; global $search_category; global $the_items_description; global $does_contain_text; ?> <div align=center> <form action="http://www.houseproudlancs.co.uk/search.php" method="GET"> <br><table bgcolor="#EBEB96" cellpadding=6> <tr> <td> </td> </tr> <tr> <td> <div align=center> Search For: </div></td> <td> <div align=center> Category: </div> </td> </tr> <tr> <td> <INPUT name=for value=<?php echo ("$search_for"); ?>> </td> <td> <SELECT NAME=category SIZE=1> <OPTION <?php if ($search_category == "Search All Categories") { echo ("SELECTED"); } ?>>Search All Categories <OPTION <?php if ($search_category == "Floral Creations") { echo ("SELECTED"); }?>>Floral Creations <OPTION <?php if ($search_category == "Decorative Lighting") { echo ("SELECTED"); }?>>Decorative Lighting <OPTION <?php if ($search_category == "Kitchenware & Crockery") { echo ("SELECTED"); }?>>Kitchenware & Crockery <OPTION <?php if ($search_category == "Fancy Goods & Furniture") { echo ("SELECTED"); }?>>Fancy Goods & Furniture </SELECT> </td> <td> <INPUT TYPE=submit VALUE="Search"> </td> </form> <tr> <td> </td> </tr> </table> </div>
View Replies !
View Related
Passing Checkbox Values To Another Page
What I want to do is pass multiple checkbox values from a form on an HTML page to another page (Thank you page) where it can be viewed if it was selected (checked). I know I need to "Get" the information from the quiry string after the information has been submitted but I'm lost on how to exactly set this up so it works properly. Code:
View Replies !
View Related
Passing A Php Variable When Opening New Page
I am working on a file directory listing and file editor. I have a index.php file which lists directory contents and a "create new file" link which pops up a new window to create a file within the working directory. I am popping up that new window with javascript and I'm not sure how to pass the variable containing the working directory as I do that. Code:
View Replies !
View Related
Passing Form Data Through A Page
I'm in the process of creating a new form that stores customer input into a MySQL database. What i'm attempting to do is allow them to fill out their data, and hit 'next' to go on to a file upload form. Upon completing that form and submitting, all information (including their data from page 1) is posted at the same time (so it's all under the same ID). What would be the easiest way to do this? Right now my submit file (submitquote.php) contains the following data (all on one page). Code:
View Replies !
View Related
Repeatly Passing Objects To The Same Page?
Let say I am trying to get a list of schools, and I provide a form for ONE school/page. If the user wants to add one more school, he/she can press "add" and it will loop back to the same php page and php script should construct an object "school" based on the data he/she entered in the form and add the object into an array. If the user has entered all the school infos, he/she can press "done" and the php script should flush the array of "school" objects into a db. My main question: how can I pass the array of objects back to the same page?
View Replies !
View Related
Passing Parameters To A Web Page Script
I posted this earlier and it disappeared from the NewsGroup I want to pass two parameters to a simple script running on my web server. The script "parpass.php" looks like this: <?php echo "The total number of parameters passed was: $argc "; echo "The parameters passed were: "; foreach (argv as $val) { echo "$val "; } echo " "; ?> I tried running this script by typing this in my browser window Code:
View Replies !
View Related
Parameter Passing From Asp To Php
I've got a script using com objects that will work in asp but not work with php. The asp script creates an object that does something and returns a string. I want this sting to be passed to an php script without putting it in a getstring. The getstring will expose the value and thats not my intention. Encryption is an option but I'm not charmed by that solution. I'd rather do it behind the scenes. Who knows a creative way to do this?
View Replies !
View Related
Passing Parameter To PHP/cgi
- In my (Java)program I read a POST-request from a Web-client over a socket and might pass this request to a PHP/cgi-Modul, to get PHP's generated HTML-stream. The request comes in parts as follows: .. .. -----------------------------7d42241a0302 Content-Disposition: form-data; name="sql_query" select * from dir -----------------------------7d42241a0302 Content-Disposition: form-data; name="show_query" 1 -----------------------------7d42241a0302 Content-Disposition: form-data; name="sql_file"; filename="" Content-Type: application/octet-stream -----------------------------7d42241a0302 .. .. - I copy the parameter-names and the values and pass them to PHP. This works fine except the following case (with another request): .. .. -----------------------------7d4f01b15038c Content-Disposition: form-data; name="sql_query"
View Replies !
View Related
Parameter Passing
I am unable to pass my php parameter to the javascript. But it is not getting fetched. <?php $str="from php"; ?> <script> var abc="<?php echo($str) ?>" alert(abc); </script> <?php ?>
View Replies !
View Related
Passing Parameter
In my (Java)program I read a POST-request from a web-client over a socket and will pass this request to a PHP/cgi-module, to get PHP's generated HTML-stream. The request contains formular-parameter and the data from an uploaded file. I copy the parameter-names and the values and pass them to PHP. This works fine, but I don't know how to tell PHP, it may read the data from the uploaded file. Who can help me ?
View Replies !
View Related
Passing Information To A New Page With A Submit Button
I've started creating scripts that allow for one page to have a form that data can be added to. A second page that allows some one else to view all the submissions that have been entered. This page also creates a submit button for each entry. Now what I need to do is make it so that only the entry for which the submit button is connected to is carried over to a third page. At this point using variables, each button gets a different name and value such as, button 1, button 2, button 3, ... When I click any of the buttons all the data from all the submissions get carried over to the new page instead of only the data that that button goes with. How do I write the code on the third page to carry over just the data that the button I click is related to? I'm using a flat file for the data entered into the first page. Glenn
View Replies !
View Related
Help Needed - Passing Values Between Two Loads Of The Same Page
How do I pass a string from one call to a php block to another call in the same page but from another form? Here's my full php code: I'm using two forms in the same page. A hidden field 'f' with values Ƈ' and ƈ' are used to distinguish calls from one form from those from the other. <html> <head><title>Database Access</title></head> <body> <form name="QueryForm" action="db2.php" method="POST" /> <input type="hidden" name="f" value="1" /> <input type="text" width="100" name="txtQuery" value="select * from license_master;" /> <br/> <input type="submit" name="Query" value="Query" /> <br/> </form> <?php $s = ""; $nl = "<br/>"; switch ($_POST['f']){ case Ƈ': $conn=odbc_connect('mysqldsnone','root','katipatan g'); $sql = $_POST['txtQuery']; $rs=odbc_exec($conn,$sql); echo "<table width="60%"> "; while (odbc_fetch_row($rs)){ $abbr=odbc_result($rs,"abbr"); $fullname=odbc_result($rs,"fullname"); $link=odbc_result($rs,"link"); echo "<tr> <td colspan="3" background="blue.png"> <p class="white-text">".$abbr."</p></td></tr> "; echo "<tr><td>".$abbr."</td><td>".$fullname ."</td><td><a href="".$link."">".$link."</a></td></tr> "; $s .= $abbr.",".$fullname.",".$link." "; //making the comma separated string here }
View Replies !
View Related
|