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 Complete Forum Thread with Replies
Related Forum Messages:
Passing This Radio Button Info To New Page.
I have my users choosing from several radio buttons on a page(page1). When they click "submit" they should be given a table of results on another page(page2). Depending on which one they choose an X will appear in the correct box. Code:
View Replies !
Putting Info Into A DB / Passing Info Between Pages
I have run into an issue...I have posted previously, but my scenario has changed. Here is the situation... If a user clicks on a link ('abc123' for example) I want to insert into my database some predefined information about 'abc123' - I have assigned a value that is echoed in future pages for 'abc123'. So, what I need is some mechanism to, when a user clicks 'abc123', have a pre-defined username and password be entered into the database. I need this so future pages can utilize the session values.
View Replies !
Passing Info
I'm designing a site for an organization which sponsors a lot of events. They want each event to have its own page along with a form for anyone who is interested to signup. A person is able to signup for more than one event. After a person is signed up for all the events for which they are interested. they want the site to have a page which displays all the events for which a person is registered. The person can review their registrations and do a final registration submission. Is it possible to accomplish this task? How do I keep the website from remembering what a person chooses so they can receive their review page?
View Replies !
Passing Info From Html To Php
I'm trying to pass info from a "Drop list" in an .html form into a .php which will then query a database. It doesn't work and I wondered if I'm missing something easy? If I junk the dropdown list and just put a "textfield" there is no problem but I want to have the fixed choices list. Here is the code:
View Replies !
Passing Variable Info
When I wish to give users a button that when they click on it, it executes a script (in this case repair.php) and to this script a specific value should be passed (in this case $PilotIDX). I have solved it using a form (very dirty in my opinion), where the value is actually connected to a checkbox that the user selects first. <form action="repair.php" method="post"> <input name="TargetShipID" type="checkbox" value="$PilotIDX"> <input type='submit' value='Repair'> </form> It works, but in my opinion it is a very "dirty" way of doing so and I would have guessed there is an easier option. Can someone perhaps point me in the right direction?
View Replies !
Getting Info From Db While Passing Variables Via Address
I am passing variables via a link address such as follows : content.php?page=$cat&&author=$author&&title=$title I am using urlencode to replace the whitespace in the links. I am also using a function to replace characters such as & with its w3c compliance version. (ie. &) The function is as follows: <?php function replace($string) { return preg_replace('|&+|', '&', $string); } ?> The following is an example of how I am using the preg_replace and urlencode to populate the variables in the url. Code:
View Replies !
Passing Info Of Checked Boxes(array Value) Using Next/previous Links
I have a webpage which generates product information from a database, with a checkbox next to each product. There are 20 products per page, and about 220 products right now. I have next and previous buttons on top which are generated dynamically using $PHP_SELF according to the # of products in the Database. I can check off products that I want delete on one page and then click on a submit button, which deletes those products of the main page. Now my main question is this.....my array of checkboxes is named to[], can I check off products on 1 page, then click on next, etc etc. till I check all the products off i want to send delete to, but remember the values of all the previous checkboxes?? In other words when I click on submit for my last product, will it remember all the names that I checked off? PHP Code:
View Replies !
Sessions And Redirects - Send Info From Page One To Page Two.
I have a two part form, each part on a seperate page. I want to send info from page one to page two. Thought ok, I use session variables. The problem is that they don't get sent to the second page. All works fine on my local testing server, but when I go live session varables don't show. Has this something to do with header? Is there another way to get to the second page? Code:
View Replies !
Email Me This Info Page From A Order Confirmation Page?
How do i make a "email me this info" page from a order confirmation page? Basically someone enters some info in a form, then on submission is comes to my email. After submission, i want to have a text area where they can enter an email address to have the info emailed to them if they wish. You can see the page here, you have to enter info first, the email nbox on the second page (process.php) is non fuctional.
View Replies !
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 Replies !
Sending Page Info
for several different .php files (file1, file2, file3 ...) i want to have page numbering, ie, this is page 1, this is page 2... the files are accessed in different order order 1: file1, file2, file3 order 2: file2, file3, file1 but the page numbering should always be 1, 2, 3 regardless of actual file order. any ideas how this can be done?
View Replies !
Page Info Change On Submit
I have a menu on my site that is all pulled out of a MySQL database. So the links actually look like this: <a href="about">About Us</a> And when the user clicks on this link I want the page to go to the database and get the info for "about" and then refresh the page and display the info.
View Replies !
Opening A Page To Display The Right Info
I'm making a website where registered users can upload a photo as well as information. The main page will display all of the users' photos. When user1 clicks on, say, user5's photo i want a page to open up and user5's information. How do i do this? Every user has a username stored in the database along with their information and the url to their photo. Code:
View Replies !
Parsing Info From Other Page (method POST)
- i want to get some info from the page XYZ to my page. XYZ page has a FORM where you can select DAY, MONTH, YEAR and you get the info about a day you selected. - now, if i want to grab the info from let's say 20. august 2002 my url will look like this: http://XYZ/file.php?day=20&month=8&year=2002. - THE PROBLEM is, their form has the POST method, which means, if i want to direct link the 20 august, it will bring me to the FORM page and not to DATE page. is there any ways to bypass this?? I REALLY NEED THAT INFO?!
View Replies !
Dynamic Content - Writing DB Info To A Page
I'm writing a website that works on similar lines as a dating site, where end users can enter their details and what they want to sell, which is then submitted on to a webpage, any people that are interested in that product, contact us and we then pass the lead to the person who is doing the selling. So basically teh site is acting as a middle man. I have done the database bit where the end user enters his details, we get emailed his details and his id (which is a an auto increment field) then there is a page called view.php which pulls up his details on a web page and there is then a submit and decline button. Teh decline button is the easy part, but the bit that I'm stuck on now is the submit part. And thus here is my question how do i write information that is held on a database to a webpage. But this webpage has to ADD and and not OVERWRITE what is already there as we want to create a listing? Code:
View Replies !
Pass Info Forward From A Redirect Page
I have a main page with 75% constant contents. I want to change the other 25% depending on what page calls the main page. Example: www.mysie.com/a.html www.mysite.com/b.html www.mysite.com/c.html www.mysite/x/y/z/mainpage.php Pages a, b, and c are redirect pages to mainpage.php How can I how can I open storya.txt in the mainpage.php when someone clicks on ~.com/a or storyb.txt if they click on ~ .com/b ?
View Replies !
HTML Presentation Page For Uploaded Info?
I've seen a lot of posts about uploading files, but not much about what happens afterwards. Can someone point me to a tutorial, post or book which will help me solve this problem: I'd like to have a form where users can upload a photo, add a short bio, put in some contact info, and have all of this information stored in a database (natch). Then I'd like for this form to take this user's data and put it into an html presentation template. Ideally, members would sign in and be able to modify their own profiles as well as view other profiles.
View Replies !
Getting Current Page Info Into The Query String
I have a drop down list in a form, in a PHP page, the form is displayed via 'echo'. The FORM ACTION tags looks like this: echo "<CENTER><FORM NAME='choose_lib' METHOD='post' ACTION='viewpix.php?ctPos=360&ctWid=109&hsp=1&loc= XXX '>"; When the user selects a name from the drop down list, which is dynamic, how can I get that variable into that ACTION url where it currently says XXX ? All I can think of is that I am going to need an intermediate page, and that doesn't sound very efficient.
View Replies !
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 !
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 !
[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 !
Passing An Image From One Page To The Next.
I want the user to input information, submit it and be able to check it before having it go to the database.This information will include an image.How do I pass the image from the input page to the next page before having it go to the database?
View Replies !
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 !
Passing Result To New Page.
I have a search result with a link which links to the ID# of the record. By clicking on the link I would like the rest of the record displayed. What will my script look like to pull a particular record ID?
View Replies !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
Passing Array To Another Page
I want to pass an array to another php page. Now, I know this can be done with SESSION. But I want to pass array something like page.php?arr=$myarray. Is it possible? If yes, please post example.
View Replies !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
|