Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Way To Pass The Selected Records To The New Page?


I have a dynamic table and use a check box in every record. I want the selected ones to open in a new page. What shall I do? I mean, what is the way to pass the selected records to the new page?




View Complete Forum Thread with Replies

Related Forum Messages:
Display Selected Records
I have a table on a form which contains records that can be multiple selected by checkboxes. A submit button sucessfully sends the record IDs of the checked records to the next page. I want to display the records that were selected via the checkboxes, but the problem is that I get only the first of them.

View Replies !
1 Record In Database But 2 Records Were Selected?
i'm retrieving a record from database. below the record, i have a yes and no button, where i can let user click and then count the number of yes and no.

everything works fine, but when i start to click the yes or no button, my record ,becomes two records. i only have one record in my database, but two same record was displayed.
this is the code: PHP Code:

View Replies !
Show All Records For The Selected Month & Day
I have a query that shows all appointments of a chosen day using the following format:

$eventid=2007-05-21

WHERE starttime LIKE '".$eventid."%'

I have a calendar and am trying to make it show all records for the selected month, or display all records from a specific day if a day is selected from the calendar.

So far I have it where I can show records from specific day, but want selected months records as default.

View Replies !
Delete Selected Records From Table.
Can anyone see why this connection doesn't work? It's suppose to delete selected records from my table.

<?php

if (isset($_POST['delete'])) // && isset($_POST['delcus']))
{

foreach ($_POST['delcus'] as $val)
{
echo "$val";
$conn= mysql_connect( "localhost", "user", "password" );
$sql = mysql_select_db( "snow" );
$del = mysql_query("DELETE * FROM request WHERE qid =" .$val);
//$rows = mysql_num_rows($del);
$rs = mysql_query($conn, $sql, $del);
if($rs)
.........................

View Replies !
How To Pass The Value Of Selected Dropdown Menu To Another File?
there is a php-myql script that list the mysql databases in the drop-down menu, use wil select one and the submit button should pass the value or variable $db_name to the test.php, this script list the databases in the drop-down menu but when i select one and then click on submit cannot pass the db_name to the test.php:

View Replies !
Session Variable To Pass The Id Selected From A List?
I have a list which the user can select from in order to go to another page with details of the selection. I currently have the id of the selection being passed on the link as follows: PHP Code:

View Replies !
Detect What Option The User Selected And Then Direct That User To The Selected Page.
Quick question regarding HTML forms and select fields. I want to be able to detect what option the user selected and then direct that user to the selected page.

<select>
<option name="1">1.html</option>
<option name="2">2.html</option>
</select>

when the user selects, 1.html, it'll direct them to http://www.domain.com/1.html same with 2.html. I wasn't sure if this was done with PHP or Javascript, if its possible on both, which is better?

View Replies !
Is There Anyway Of Refreshing That Page After A Skin Has Been Selected?
have a script thta does skinning for my website. on the script that sets the seesion i use a header location thing.

header("Location: http://localhost:8080/public_html/test/setskin.php3");

the setskin.php3 page is where the user selects the skin. i was aiming for refreshing the page after selection, so that the user can see the look. but the header location part does not seem to refresh the page in any way. how come?

is there anyway of refreshing that page after a skin has been selected?

View Replies !
Login In A User, And Then Pass The Username And Session_id From Page To Page
I want to login in a user, and then pass the username and session_id from page to page until the leave the admin area of the site. Here's a simplified function: PHP Code:

View Replies !
Selected Radio Buttons Should Display The Corresponding Qus/ans Page
i wanna dispaly qus for the corresponding selected radio button.. Code:

View Replies !
Insert A Page Break For Printing Purposes After X Records On Page.
I need to insert a page break for printing purposes after X records on page. I'm querying five diffrent records with 5 different results and displaying them like:

$record1
$record2
$record3 and so on

So I want to get total number of records which is pretty easy I just add all the totals let's call it $subtotal. Then I want a page break after every 20 records of the $subtotal. Is this possible?

View Replies !
Drop Down Menu - Every A Value Of It Is Selected To Reload The Page And Submit That Value.
i have a drop down menu and i want every a value of it is selected to reload the page and submit that value. i'm using something like this: HTML Code:

<select name="menu">
<option selected value="1">GENERAL</option>
<?php
while ($cat = mysql_fetch_array($q)) {
$cid = $cat[0];
$cname = $cat[1];
echo "<option value='$cid'>$cname</option>
";
}

echo "</select>";

i tried using <select name="c" size="1" onChange="MM_jumpMenu('parent',this,0)"> but i got confused so i'm looking for an alternative way..

View Replies !
Pass The Variable From 1st Page And Read It With Other Name On 2nd Page
I am new to this and learning slowly, but I was hoping someone could give me some quick advice on how to create a variable on one page and have it passed to another to be read as an ID for a mySQL database.

I want to pass the variable "varRevID" from one page and have it read as "reviews_id" on the other.

My database is pulling from just the first record and I would liek to designate from the pointing page which record to pull from.

View Replies !
How Can I Pass Variables From The 1st Php Page To The 2nd Php Page Without Using Cookies
How can i pass variables from the 1st php page to the 2nd php page without using cookies or passing through the URL from an <a HREF="2ndpage.php"> link? the variable consist of 200 characters. for example some code

//for example i get the variable $variable from the db.

while ($row = mysql_fetch_array($result,MYSQL_ASSOC))
{
<a href=&#392;ndpage.php'>
}

View Replies !
Make Selected Option Stay Selected In A Combo After Submit
I have 3 comboboxes, one for the day, other for the month and another one for the year. Every time i select a value for the three of them and press the "Submit" button, they reset to the default option. Anyway this can be solved?

View Replies !
PHP Dynamic Drop Down Menus, Page Displays Diff Data Depending On Dropdown Selected.
I currently have two drop down menus the first one with countries and then the second one changes depending on which country is selected to display counties.

This works fine, now what I want to do is have it so when it county is selected it shows all the squash clubs that are in that county below the drop downs. Code:

View Replies !
Pass A Value From One Page To Another
I am currently migrating from an asp environment to php and need assistance converting my scripts. I am trying to pass a value from one page to another. with asp, i use the following: First page:

<form name="form1" method="post" action="XXX.asp">
<select name="ABC" id="ABC">
<option value="na">a</option>
<option value="b">b</option>
<option value="c">c</option>
<option value="d">d</option>
</select>
<input type="submit" name="Submit" value="Go">
</form>

Second page:
named XXX.asp

code:
<a href="http://www.example.net/click-123-456?SID=<%=request.form("ABC")%>" target="_blank">DEF </a>

What PHP code will place the value of the selection (A,B,C, or D) in the <%=request.form("ABC")%>" spot?

View Replies !
How To Pass A Var To Another Php Page W/o Using A Form
I want to construct a URL as follows:

<A href="/somewhere.php?epoch=38129301">Link</A>

Is this possible w/o using forms? I am unable to use $epoch in
somewhere.php

View Replies !
How To Pass An Array From On Php Page To Another
i want to send an array from one age to another... i am not using a form....so cant use php-trace-vars.. i have variables...in an array and i want these array elements to be visible on next page too...without posting them..how is this possible.

View Replies !
How Can I Pass Variable To Next Page?
I have a search page to search the database, the input from user are include 4 items:

keywords
country
catalog
date

the results are divided into pages by date desc, so there are PREV10 1 2 3 ... NEXT10 to indicate the page number. Then, How can I pass the 4 items and the page number to next page? I don't wont to use urlencode() and urldecode() because there will be long url in IE's address. I try to set the $HTTP_POST_VARS as cookie, so my code:

View Replies !
How To Pass Session Id To Another Page?
I have a script for loggin to a site. My problem is that I want to pass the session Id to another page but I dont know how to do this. what is the correct way to pass another page the session id for security issues?

my another page is: pagina_entrada.htm in this page I have the script for checking if it is the real session id if not it is refused the page This is the script in each page belong to site. All pages has this script first. Is tthis correct? Code:

View Replies !
Pass Variable To Another Page
i know i can pass a variable with POST or GET. but i want to do the following:

a user enters wrong login credentials, so i redirect the user to error.php.
but i also want to pass the message "login credentials not found!".
I could do this with: header("location:index?php?page=error&err=wrong login credentials");

but i don't want the error string to be visible. can i do this another way?
POST doesn't seem an option to me as there isn't a form involved.

View Replies !
How Do I Pass An Object To Another Page?
I have 1 page with products on it which users add to a shopping cart using a shopping cart class. The class stores the users products into sessions which works great but I need to be able to display the cart contents on my checkout page using my display cart function. Do I need to pass the shopping cart object and if so how do I do it? PHP Code:

View Replies !
How To Pass The Object Between Page?
I've create a Class Cube which is a object that contain 6 faces in a cube and got functions to turn the cubes in all directions. Here is the code of cube.obj : PHP Code:

View Replies !
Pass An $id Value From One Php Page To A Form
At the moment i am trying to pass an $id value from one php page to a form which then gets inserted into the database. The problem is that the value inserted into the database does not equal the value that it should, it always equals "0".

Here's what i've got so far. On the php page that sends the variable to the edit.php page i have the following script: PHP Code:

View Replies !
Pass A Variable In The Url To The Next Page
i am trying to pass a variable in the url to the next page: http://www.xxx.com/xxx.php?at=$price

then, on the xxx.php page i would just use the following command to retrieve the variable: $test = $_GET['at']; wouldn't this be correct?

View Replies !
Pass A Variable To A Second Php Page?
I am working on my first multi-page php project, and was wondering how this works. On the very first page I have:

<select name="itemtype"> which is given a value of 1, 2, or 3 and passed to the next page by:

$itemtype = $_POST['itemtype']; where the value of itemtype is used in a switch statement. 

I want to use the itemtype variable again, and add it to my database, so the page can remember if the item is a dvd or cd or book. 

$itemtype = $_POST['itemtype']; 

Doesn't seem to be working again is there a way to pass this variable?

View Replies !
Pass The Variable Through To Another Page
I am trying to do: Email form gets sent to email.php and then on to thank_you.html.

So ... the trouble is ... I lose the variable $green along the way.

And what I mean is this:

form.html says this: <INPUT NAME="green">

then email.php sends an email and goes here:

$redirect_url = 'thank_you.html'

But what I want to do is ... IF green is equal to a certain value - I want to display certain text on the thank_you.html page.

But, I seem to not have access to $green once I get to thank_you.html. Code:

View Replies !
Can't Get The Array To Pass To Another Page
A user input form to where the value is inputed by the user. Can't get it to pass to page 2. Any ideas? Code:

View Replies !
Trying To Pass An Identification From One Php Page To Another
I am trying to figure out how to pass an identification number that is generated before the user logs into the system (as they select a job that they are applying for) but is needed after to fulfil their initial request.

They can search for jobs but they can't apply for them until they log into the system - thus the identification number of the job they are applying for needs to be passed onto the next page as they either log in or register.

I need this identification number (originally retreived from a MySQL database) to be passed through possibly upto 3 pages before it reaches its destination. i also need to be able to send it back to the database on the final page. Is this possible? or is there a better way of doing it? if so how would i go about undertaking it?

View Replies !
Pass XID Via A Session Along Each And Every Page
the user sets up the account and adds each subuser as part of his "group". they share an XID inside the database. so user XID = 001 and subuser XID=001 so i know they belong to the same group.

I want to be able to pass this XID via a session along each and every page. So one of my functions in my application would be to list all submembers with this XID. when the main user signs in, how can he carry this XID over every single page he visits? (There is no telling when the main user wants to perform the function above)

So login would include username and password, but in the background i want the XID to be passed along somehow after login. So obviously the username password and XID would be in the same table. Would i pass information in an array? how does the script know to hit this one table. I guess im having trouble putting 2 and 2 together.

View Replies !
Pass Array To Same Page
im using the followig code where $e is an array:

<a href="admincourse.php?addall=addall&month=$month&year=$year&courseid=$courseid&d=$e">

but its not being passed as an array its being passed as some text "array", what is the correct way to sort this?

View Replies !
Pass Parameter To New Page
With psp, how can I go to another page and pass a parameter to it?

View Replies !
Pass An Array From One Page To Another
I'm trying to pass an array from one page to another and display it's contents on the next page. This is the code I am using

$var1 = $_GET["name"];

foreach($var1 as $value)

echo $value;

I keep getting this error "Warning: Invalid argument supplied for foreach()in..........."

View Replies !
How To Pass A Combo Box Value To Next Page?
i've a combo box filled with values. i need to pass the value of the selected value to the next page.

View Replies !
Pass Variables To Another Page
I have the following line in one of the pages I made:

echo("<A HREF=$PHP_SELF?deleterecord=$recordid>" ."Delete this record</A>"."</li>"[smilestopper]);

($recordid is the unique id of a record i have in a mysql table) When I load the page and choose to delete from one of the links the page reloads but the record is not deleted as it should be from the code I have at the beginning of the page. The whole problem, i think, is that the value is not passed when the page is reloaded, which i have seen by adding at the beginning the command echo($deleterecord);.

View Replies !
Pass An Array To The Next Page In A Form
I have an eccomerce site that has a shared secure server this causes problems with my sessions because as soon as you go to the secure server it obviously starts a new session because it is on a different server. Firstly is there a way to stop this.

Secondly if not can I easily pass an array to the next page in a form, I don't think this is possible don't all items have to be displayed in the form, each item in the array needs a form field (hidden) in order to pas sit to the next page.

View Replies !
Pass Upload Page Variables
As I sure will become obvious with the asking of this question, I am new to
programing....

I have copied and pasted my way to a successful file upload page and have
built some rather ugly if elseif loops that read the file and extract the
needed data from it. While the data is being parsed from the uploaded file
a string variable is being built that holds some details of the process.
All of this happens when the user clicks the upload button on the form. Now
when all this code is finished running, I ASSUME the page reloads, because
my string variable seems to be empty. So, my question is how do I keep this
variable so that I can print it to the form when the process is finished?

View Replies !
Changing The Variable As You Pass It Through To The 2nd Page
I am using a form to push variables through to another page. In the form, (a drop down), the code is:

<select name="1"><option>L</option><option>P</option></select>

Now on the second page I could display the P or the L by saying <?php echo $1 ?> which is fine. What I want is, if someone selects P then it prints 1 on the next page and if they select L then it prints 2. Is this possible?

View Replies !
PHP/SQL Pass Value To Field On Linked Page
I have setup an sql table containing project data (job no, description, date and auto-number id) which displays in rows on my main page. Next to each project is a link which a user can click to submit their details to show interest in that particular project. When they click this link they are taken to another page with a contact form, but I need to automatically show the job no of the project they selected in this form. I have successfully got the job no for the 1st record in the table into the field but need to make it dynamic.

View Replies !
Can I Pass Data From One Form To Another On One Page.
Can I pass data from one form to another on one page (what i've got is one form that when the submit button is pressed it submits the form in another window, part of my form:
PHP Code:

View Replies !
How To Pass Data To Linked Page ?
when a user clicks on a hyperlink i want to pass data to linked page.
but what i want is that this data should not be visible to user. i mean
is there any way that i can pass data except get method when user click
on hyper link?

View Replies !
How To Combine And Pass Data In One Page?
I didn't know what to use as a title for this. Here is the scenario:

I have a op.reqedit.php page. This page a form where you input data.
In this page I have split a MySQL field. It is called
MachineTypeOfWork and is split into Replace, Adjusted, REbuild,
Inspected and Repair. These all become check boxes for the user. The
form submits to op.reqadd.php. In this page I first have a hidden box
where I combine all of the above into Type (this works fine, I have
unhidden the box to see it). Then I have

$MachineTypeofWork = $_GET['Type'];
$sql_query = mysql_query("UPDATE results SET (a bunch of fields)
MachineTypeOfWork='$MachineTypeofWork' WHERE WorkOrder = '$wo'") or die
(mysql_error());

My problem is that it updates all of the fields it should except the
MachineTypeOfWork field in MySQL. It actually overwrites what is
already there with nothing.

What I do not know (I am new) is can I combine the field and pass it to
the database in the same page or do I need another page in the
background for this?

View Replies !
Pass Values Of Arrays To A New Page
How do i pass all the values onto another page that I have gathered. If I have a form and place info into the array, how do I pass the value in that array over to a new page.

View Replies !
Pass The Session Variables To A Second Page.
Ive got a problem with our server. I checked it and i cant login to our webmail(horde) and all other sites that  requires logging in. So far i think it has something to do with session variables not being written or not being able to pass the session variables to a second page.

Error messages:
Undefined index: uid
Undefined index: sid

Here's our server specs:
Linux Dedicated server
Fedora Core 3
Plesk 7.5.4
PHP 4.3.11

Im not that well versed with handling servers to i dont know were to start.

View Replies !
Radio Button - Pass It To The Next Page
I have a radio buttons form on a page and when I pass it to the next page I want the code below to be able to detrmine which one has been chosen. So if "Currently In Place" has been chosen I want the screen to echo "X" but not the others.

if($_POST['myradio'] = "Currently In Place") {
$s= "X";
}
if($_POST['myradio'] = "Required Essential") {
$t = "Y";
}
if($_POST['myradio'] = "Required-Recommended") {
$u= "Z";
}

echo $s,$t,$u;

View Replies !
Pass Variables From One Page To Another Without Using Sessions?
How would I pass variables from one page to another without using sessions? I already have it set up in a very innefficient way, I make a form with hidden variables be submitted and pass the data on, then retrieved with $_POST. However, I want to get away from this messy solution. Is there a way to pass the variables on and be able to recover them in the next page?

View Replies !
Session To Pass A Variable From One Page To The Next
I am using a session to pass a variable from one page to the next. The user makes a selection in the first page and that variable is passed from one page to the next via the session. Once they make their selection on the form on the index page and click submit, they are sent to the homepage where the following code is run:

<?php session_start();
$pcode = $promocode;
session_register("pcode");
if ($pcode == 'tree'){
$text = 'this is stuff I wanna say'
}else if ($pcode == ''){
header('location:blank.php');
}else if ($pcode !== 'tree'){
header('location:invalid.php');
}
?>

What I am trying to do is prevent the user from having to reenter the variable when they return to the home page. Right now, it is forcing them to the blank page and asking that they reenter the promocode variable.

View Replies !
How To Get Rec Id And Use Header() To Open New Page And Pass Rec Id
1. After the record is inserted I would like to open page_add.php and pass the record id (there is an auto_increment field in the table called ID) to the new page "page_add.php". I was thinking of using header() to open the new page and passing the id as parameter (i.e. page_add.php?rec_id=what ever) is there a better way to do this?

2. how would I get the record id after I store the new record?

3. Also not sure how to write header() with a variable in it?

Code:

View Replies !
How Do I Pass The Users Name To Another Php Page And To The Sql Query?
i have this simple project of member directory in which user enters the detainls like name address age email etc. through a html page then the details are displayed through a php page. now in this page when one clicks on a user name i have to show the details of that user only. how do i pass the users name to another php page and to the sql query?

View Replies !
Pass Details To The Next Page Using Header?
Is it possible to pass details to the next page using header? I've tried the below but it doesn't work.

View Replies !
Pass Variables To Included Page
I have 7 div boxes in my index.php #searchbox inside #leftbox contains a searchform. When a search is submited, index.php reloads and variables are passed. (I checked, this step works)

If the search was initiated the reloaded index.php then includes a Search_and_display_script.php in #contentbox But the variables is not passed (or available) to the included Search_and_display_script.php file, thus no results are displayed.

I know that The Search_and_display_script.php works fine independently, but not when included in index.php.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved