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 Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Passing Data To Another Page Using $_SESSION's
Is passing information from one page to another page using $_SESSION okay and secure. Like First name, last name, address, social security number. ... or is there a more secure way of passing the information?
Passing Form Data
I have a project that consists of a large quiz that displays multiple questions per page from a database and then saves those answers to another database table. The issue I'm having is with a form that consists of radio buttons and check boxes. The form is only submitting the last checked value for the check boxes rather than all checked values. I'm sure this is an easy fix but my mind is about to explode from a full day's work and a lot of time trying to figure this out, so I was wondering if someone could give me a hand. Code:
Need Help Passing Form Data To A New Window.
I have a form that one can enter their nickname for a IRC Java Applet. They enter their nickname and when they submit it should pass the nickname onto the applet. It will work if I use the normal form method="post" action="blah", but I need it in a new window, and it's not working out that way. PHP Code:
Form Data Not Passing To PHP Handler
Using a basic PHP file to handle incoming form data of a single text field, I have determined that the contents of the input is not being passed. The PHP reports the variable as empty... I suspect the reason it is getting "lost" on the way there is that the form is part of an include (header.html) rather than hard coded into the main page. So its link to the PHP handler is not direct. Is that possible? I was using GET method but to eliminate issues such as superglobals being off, I switched over to POST, at least for now and until I get it working...
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....
Passing Form Data Back Into The Same Script?
I am looking for a really simple example of passing submitted form data back into the same script. I've found quite a lot of stuff online about it, but none of which mentions the new $_POST globals and stuff. This is all that I want to do... 1. First run into the script, displays form 2. Form data submitted, same script run but check is made on $_POST variables (is isset() the best and safest function to use for this?). If all variables are present, skips to form processing code. Otherwise, reshows form with previously entered fields. I must admit, it's been a while since I've done any PHP and since moving to my new host (running a lot newer version of PHP, with the $_SESSION globals etc...) I'm more than a little confused as to the safest way of going about doing sessions. For form submitted data do I refer to it as $_POST['whatever'] throughout my script or is it acceptable to reassign them to locals at the top of every script? And does the same apply for $_SESSION?
Passing Radio Button Form Data
I am running php as a sapi module on winXP with Apache. I am passing the data from a radio button from one page to another to be processed. For some reason it seems to be passing no data - for example in the 1st page I would have 3 radio buttons in a loop: <input type='radio' name='radio' value="<?php echo $val ?>"> I would then attempt to read the data in page 2 : <?php echo $radio ?> but this comes up empty. I tried using "get" in my form, and although the name/value pair appears in the URL string, it does not pass itself to the $radio variable in the next page. What the??? Does anyone know of any reason why php would NOT allow a radio button (or any other form object) it's data to pass on. I am not using sessions.
Syntax For Passing Array Data From Checkboxes In A Form
If I have a list of checkboxes saved in an array,when I submit (POST) the form data, do I need to use $HTTP_POST_VARS in the target document, or can I just use the following code: for ($i = 0; $i < count($selectedmessages); $i++){ $checkbox_value = "$selectedmessages[$i]";} If I need to use $HTTP_POST_VARS, what would the syntax be if my array is called selectedmessages[]?
Populating Form From Database, Then Passing Results To Next Page
I have a multiple select input in a form that's being populated by a row from my database as such: <input type="checkbox" name="subm[]" value="$row[ID]"> That part is working fine as I can check the displayed page using View Source and see that the value is the correct row number from the database. It is then being submitted on a form by $_POST method to another page where I want to evaluate the checkboxes and display the contents of the entire row that corresponds to each value="$row[ID]" that have been checked. But I can't seem to get it to work. I'm having a problem passing the selected value. Can someone point me in the right direction? $query = ("SELECT * FROM `table`"); $result = mysql_query($query); print "<p>Data for Selections:"; print "<table border=2><tr><th>You chose:"; foreach ($_POST['subm'] as $value) { print "<tr><td>"; print "$row[ID]; "; print mysql_field_name($result, 1) . ": " . $row[name]."<br>"; print mysql_field_name($result, 2) . ": " . $row[address]."<br>"; print mysql_field_name($result, 3) . ": " . $row[city]."<br>"; print "</td></tr>"; print "</table> "; } if (!isset($_POST['subm'])){ print "<p>No matching entry "; } mysql_close();
Passing Form Data To An Email Address/Excel Sheet On A Local Computer
I am right now learning PHP & want to know if there is a way to send web form data to an Excel sheet located on a network. My windows xp PC doesnot have a copy of Excel. Also i am not connected to the internet, its a local computer. What i am trying to do is to make a PHP script which will send a simple form data to an excel sheet (or create a new Excel sheet) on another PC on a network. Since i am not connected to the internet, i will not be able to send an email (anyway, sendmail is not available on Windows OS), nor do i have any server on windows. Is it possible to send form data to Excel sheet on local computer? Even my PC is a local PC. Some one was saying its possible thru Windows Scheduler.
Transport Form Data To Next Page
How can I achieve this: page 1 has a form with textfield1, after clicking submit, page 2 is loaded with another form that also contains textfield1. Can the data that is entered in textfield1 on page 1 automatically be put in textfield1 on page 2?
Transferring Data To Another Page After A Form Process
Quick question: Is it possible to copy some results from a form (via POST) to another page after submitting the form? I'd like to use the results somewhere else later on, but want the form to process normally without the user being forced to redirect to the other page. I've got a vague idea, but I don't know if such a thing would indeed be possible in php or not.
How To Post The Data From A Form To A Web Page Of Other Site
I WANT TO POST THE INFORMATION FROM MY FORM AFTER TAKING INPUT FROM THE USERS TO A WEBPAGE( PAYMENT PROCESSING SITE) WITHOUT VISTING THAT PAGE. I MEAN THE WEBPAGE SHOULD NOT BE DIRECTED TO THAT WEBPAGE(PAYMENT PROCESSING SITE). THE RECEPIENT WEBPAGE (payment processing page) RECEIVES THE INFORMATION THROUGH "GET" METHOD OF THE FORM. SO WE CAN USE "GET" METHOD IN OUR FORM.
Capture PHP Form Data As One Page Html, Screen Capture, Or PDF?
There is a medical office that has a detailed online patient form. When they receive the form data, it is split into 4 to 5 pages. Their online form is one detailed page. Their IT person thinks that they should be able to get their form data as a screen capture--basically a picture of the form filled in--ONE PAGE. Is this possible at all? I've never heard of this. If this is possible, is their software that does this that one can buy?
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>
Posting Form Data And Also Allow To Download Form Data
i have a client that whats to post form data to a database but he also wants users of the script to download it aswell how will i got about doing this i thought about it that i could make it save it into a txt file then echo the download link is there any ideas? because to post it to a txt file it would be posting 2 places is there a way to do this? Code:
Simulate Send Data With POST And Get Data From A Web Page (whith A Session)
I'd like to get text of a webpageB that I reach by putting a login and a password in a webpageA. I mean: I'd like to get text of a WebPageB with a php script. But before I can see WebPageB I have to autenticate myself in a WebPageA writing my login and my password in a form, the host recognise me and (by session) let me see the WebPageB. The question is: 1)how to simulate send data (login an password) in form with a PHP script? 2)how to navigate in a Web usin the same session?
Passing Data From PHP To ASP
I am writing a PHP script that will need to push data to an ASP script on another server. Unfortunately, I have no control of the ASP server, so must adapt my script to push the form data. How easy is this to do?
If Value =1 Direct To Page Otherwise Show Data On Page
In the member account area there is a button saying (list) when the member clicks this they are redirected to add.php here i am wanting to check if a members account is limited, if it is direct them to a page saying you must pay your bill. if its not display the info on the page. in the database there is a field called limited which is tiny in if its not limited the value of the field would be 0 if it is limited the value would be 1.
Passing Data Via HTTP_POST_VARS
I have a form submitting to a script. In that script I want to send the browser back to the form along with some error data stored in the HTTP_POST_VARS array. PHP Code:
Passing SESSION Data
didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains: ---------------------------------------------------------------------------- <?php ini_set("session.use_cookies", "off"); ini_set("session.use_trans_sid", "on"); session_start(); $_SESSION['entered_username'] = ""; $_SESSION['login'] = ""; echo "<form method='POST' action='login.php'> Username:</b> <input type='text' name='username' <b>Password:</b> <input type='password' name='password' <input type='submit' value='Login'><b>Not a member?</b> Sign up <a href='register.html'>here</a> <b>Forgotten your password?</b> <a href='password_reminder.php'>Click here</a> to have it e-mailed to you. </form>"; ?> ---------------------------------------------------------------------------- Viewing source from browser reveals: ---------------------------------------------------------------------------- <html> <head> <title>Welcome</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head> <form method='POST' action='login.php'> <b>Username:</b> <input type='text' name='username'> <b>Password</b> <input type='password' name='password'> <input type='submit' value='Login'> <b>Not a member?</b> Sign up <a href='register.html'>here</a> <b>Forgotten your password?</b> <a href='password_reminder.php'>Click here</a> to have it e-mailed to you. </form><H1>Header 1</H1> <H2>Text about something</H2> </map> </body> </html> ---------------------------------------------------------------------------- As you can see, no hidden field. I'm not sure what I've done wrong here. The PHP on the login page contains session_start(); at the beginning, as does member.php but on the member.php page, I get: Notice: Undefined index: login in C:Webmember.php on line 12 Line 12 contains the following: ---------------------------------------------------------------------------- if ($_SESSION['login'] != 'yes') { echo "You haven't logged on!<p> <a href='index.php'>Click Here</a> to return to the login page"; exit(); } ---------------------------------------------------------------------------- $_SESSION['login'] isn't being passed even though it was set in login.php using the following: ---------------------------------------------------------------------------- if(mysql_num_rows($result) == 1) { $_SESSION['entered_username'] = $_POST['username']; $_SESSION['login'] = 'yes' header('refresh: 3; url=member.php'); echo "<h2><center>You have been validated. Please wait, logging you in. . ..</h2><br> <center>If your browser doesn't support redirection and you're still here in 3 seconds, <a href='member.php'>click here</a></center>"; } ---------------------------------------------------------------------------- The $_SESSION data is available if I use mysql_fetch_array as I used below to get $entered_username from the $_SESSION array, but can I use something like this to extract the ['login'] variable from the array and then test it? ---------------------------------------------------------------------------- $query="SELECT firstname, lastname from $Table WHERE username='$entered_username'"; $result=mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array($result)) { echo "<b>Welcome ". $row['firstname'] . ' ' . $row['lastname'] . '</b>' } ---------------------------------------------------------------------------- Am I right in thinking that I should be setting the $_SESSIONs up on the index.php page? I have read that this is the correct way to do it and I can't personally see anything wrong with doing it this way. This problem has turned into a bit of a quest as I have spent so long trying to get it to work! I could just surrender and tell users that they will have to use cookies but I really want to know why this doesn't work.
Passing Data Between Scripts
I have a php script which displays some HTML stuff along with some images generated on the fly by another php script. Example: <?php // Script1.php $fp = fopen("c:/some_path/file1.txt", "r"); $tmp = explode(" ", fgets($fp)); fclose($fp); $ts1 = $tmp[1]; $ts2 = ltrim (date("h:iA", strtotime("$ts1 +30 minutes")), 0); $date = date("D M d, ") ."$ts1 - $ts2."; echo "<ul><h1 align="left">ABC Company.</h1>"; echo "<h2 align="left">$date</h2></ul>"; echo "<img src="Script2.php" border=0 width=500 height=500><br>; "; echo "<br>"; ?> Is there any way that I can have Script2.php access to the array $tmp without having it (Script2.php) open file1.txt and reading in the data? It's a large data file, not something I can pass as variables in the URL. Ex: echo "<img src="Script2.php?var1=$tmp[1]&var2=$tmp[2]" border=0 width=500 height=500><br>; ";
Passing Data Through PayPal
I need to passing some data through PayPal to a PHP script the data I need to send is the persons userid, I understand I may have to use IPN for this. I need to pass the members UserID through PayPal to a PHP script. I have Googled and found paypaltech which give a guide how to pass data through PayPal using a session, however, I would like it to auto return to the PHP script that will display some texts, so to have it auto return will I need to use IPN ? If I using IPN can I still use the session or should I use item name or item number ? If I use item name or item number does anyone know how to put that into my PHP script ? If I use sessions how long does the session last for and will it always work regardless of browser ?
Page Expired After Going Back From Del. Pageto Form Page Where Comment Is Submitted..
i've made a submit comment form with php and mysql, the form has an action to itself with a hidden var like this: input type=hidden action=add When i delete a comment on the page i go to a page called delete.php3 and there is a link with a javaline which goes -1 back in my history.. When ive added a comment, the comments page contains action=add and when i delete a comment, i want to click on the link to go back to the comment page, but then, it doesnt work and it says: Page has expired. I wondered how to deal with this kind of problems........
Session Var Is Setting ONLY AFTER I Reload Page, Form Var Displays First Page Load
Page1 has a form that calls Page2. The beginning of Page2: <? php session_start(); $s=$_POST['sSelected']; session_register("s"); ?> in the middle of Page2 I have a form varaible: <?php echo $_POST['stateSelected']; ?> <?php echo $_SESSION['s']; ?> The form var displays the first time the page loads. The session var displays only after reloading the page2.
[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.
Passing JSP Vars To PHP Page
I need to pass 2 variables that are calculated in thru a few JSP pages and I would like to place the amount calculated into a PHP page.
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?
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.
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?
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>"; ?>
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?
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.
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.
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'?
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=
Passing Additional Data With Ismap
I'm trying to write a mapping app that the user can click on some nav buttons (Up, Down, Lf, Rt, Zooom, etc) to pan/zoom the image but also include 'ismap' such that where ever the user clicks on the image, it will recenter on that spot (X,Y). I can get things working with either the nav buttons or ismap but not both due to fact that I need to pass 3 additional name/value pairs (xc,yc,z_num) to the calling script. This is what I'm trying: <?php //########### geo_caller.php #############// //#### Original Image size 1800 X 1200 ######// $base = 0.8; $input=array_keys($_GET); if (isset($zoom)) { $z_num += $zoom; $z_fact = pow($base,$z_num); } elseif (isset($horz)) { $z_fact = pow($base,$z_num); $xc += $horz*80*$z_fact; } elseif (isset($vert)) { $z_fact = pow($base,$z_num); $yc += $vert*60*$z_fact; } elseif (isset($input[0])) { $z_fact = pow($base,$z_num); $coords = explode(',', $input[0]); $xc += (400-$coords[0])*$z_fact; $yc += (300-$coords[1])*$z_fact; } else { $z_num = 0; $z_fact = 1; $xc = 900; $yc = 600; } $scr_wdth = $z_fact*800; $scr_ht = $z_fact*600; $scr_x = $xc-($scr_wdth/2); $scr_y = $yc-($scr_ht/2); print "<input type=hidden name=xc value=$xc>"; print "<input type=hidden name=yc value=$yc>"; print "<input type=hidden name=z_num value=$z_num>";.........
Passing Data To A Client Window
I have been following a topic about passing data to a client window, that was here some time ago, but i can't get it to work, any suggestions? The function is in the HTML part of the page: Code:
Passing Credit Card Data Via URL?
Is it possible to pass credit card data securely from one website to another (on a totally different server)? Basically, a live data feed of orders from external websites, not hosted on the same server where the info is passed onto the gateway? I can't image passing cc info via the url string and expecting that to be secure. for example: https://somesite.com?fname=jon&lname&ccnumber=4111111111111111&exp=MMYY.......... Am I just being paranoid? Or is this ok to do?
Passing Data From A Drop Down Menu
I have a website that I am working on. When the user logs in they see a drop down box and they are supposed to go to this box and select their name. How would I get the selection that they made to pass to the next page. This is my code for the page with the drop down box that I have so far. It pulls from my database, and it works fine. Code:
Passing Data Into Generated Pages
I have a template page with items being displayed on it and the idea is when a user clicks that item it's item id gets passed into the next page so that it can be compared against the flat file database and then when matched displayed the item information. I'll show you how i am displaying items on a page and then i'll show you the code i have developed so far to try and get the item id to pass pages and display the item details. Code:
Flat File And Passing Data
I am currently working on a project whereby users login to my website (which is working) and then using a form add new links/tabs to their navigation bar (which i need help developing). So for instance if the user had 'home/search engines/favourites' as links on their navigation bar and they wanted to add auction sites as a group title they fill out the form which wants the name of the link and the URL it goes to. So far i can make the form send the link name and URL to my flat file database (usertabs.txt) but i also need the form to once submitted automatically insert the users username before the link and URL to make their new link unique to them. So in the flat file the structure will be: username|Link name|URL The usernames etc are stored in a separate .txt file. I have this code so far which is the basis for uploading new links to a users navigation bar. $userid is the variable i want to be associated with the user who is logged on. Code:
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:
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>
Passing Variable Between Functions On The Same Page
I have a function (below). The part I am confused abbout is the variable $cnt (in bold). I wish to use this variable in another function that is on the same PHP page, how can I pass the $cnt variable onto another function in the same page? I keep gettin the undefind variable message! Code....
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:
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:
|