Change Data On The Same Page To Something Else
I'm trying to change data on this line of code using a drop down option box.
map.centerAndZoom(new GPoint(-79.89505, 40.85708), 10);
When the page opens I want the above data to be used.
I want to use a drop down menu to select a different radius. Lets say 30 miles. I want to update the page so that the above line of code will update and look like this.
map.centerAndZoom(new GPoint(-79.89505, 40.85708), 30);
Here is some sections of code I am using.
<form action='<?php echo $_SERVER['PHP_SELF'];?>' method='post'>
<select name="radius" class="selectBoxes">
<option value="20">20 miles</option>
<option value="30">30 miles</option>
<option value="40">40 miles</option>
</select>
<input type='submit' name='submit' value='Click To Update Map'>
</form>
<script>
map.centerAndZoom(new GPoint(-79.89505, 40.85708), 10);
</script>
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Refreshing A Page To Display Change In Data
I have a page that scrolls out information from a database. When one of the records has been completed by the user, they press delete at the end of the row, and it sends the record id to a processing page that deletes that record from the database, then returns to the scrolling page. However, the deleted record still shows on the page until one presses the refresh tab on the browswer. Is there some way I can have the page refresh when the processing is done, so that the changes made will be reflected immidiatly, instead of the user having to press the refresh button themselves?
Data Type Change Without Loosing Data
I have a problem in mysql. I stored a date in 08/14/2006 format and choose a datatype longtext now i want to store date in 2006-08-14 form is it possible to do it without loosing data in db when i convert datatype longtext to date the data lost. Any solution?
How To Change One Page To Change All?
i need to know how to create a page where i only have to change one thing on one page so it changes that text or image on every page of my site. in other words i want to be able to create a template, so if i do want to vchange something in the duture, i only have to change on page, instead of changing each individual page.
How To Change Data Dynamically ...
I'm developing a system where user has a previlage to select his/her COUNTRY then STATE then CITY respectively. i've put all the Country names, State names and City name in a Drop-Down combos which is filled dynamically from the MySQL database. Now my problem is that i want it in such a way that if one select USA as COUNTRY then all the STATE(s) of USA should be displayed on the STATE combo not any other. and then when user selects the STATE in the next combo the CITY combo should be populated with cities related to that STATE only and not with any other.
Change Variable In Another Page
i have my form displaying information from my mssql database 1 record. When i click next it goes to php page which from there i want to change the value of a variable in my other php page whihc loads the query for my form then reload my form page with the new record.
Change Data Time Format
when I retrieve my date and time from database and display as follow: 2003-03-14 14:42:18 How can I easily change the format into : Mar 14th, 2003, 2:42pm
Detect Change Of Remote Page
i have some links on my site, i need to be absolutely sure that the html has not been modified, even one character. i would rather not rely on http headers, just the html (so it is not dependant on the webserver). should i make a database to actually mirror the page, and then check against my copy? any better ideas? :)
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.
Change The Web Page Contents On Click
I want to sort the data displayed on web page on click of button. I have a combo in which all user have to select the sort order in which he wants to see the data...(The combo box or drop down box contains values "Name, Department Salary and Grade") The user select the order (say name) by clicking the combo box or drop down box. The moment the user releases the combo or drop down box, I want to refresh the page with new sort order.
Using A Link To Change Page Content
Basically I have a page to enter data into a mysql db via a form. After the data has been input, this form disappears and instead (on the same page) the data is shown in the same format, just not editable anymore. What I need to do is have a link that will be able to switch between the two states, being 'edit' and 'view'.
Page Editor, Preview As Change
I have a simple html editor on my page that edits the left portion of my page. I wanted to know if I could make the left side of the page load the html from the textbox as I change the html in the textbox. Here is my code for the editing and such: Code:
How To Dynamically Change Page Title Using Php And Require_once?
This is an elementary question, but I've not been able to find the answer, so here goes: I am developing a site using php. I have the html header information in a file that I include in all the pages using the require_once function. That is, each page includes the line <?require_once('PageStart.php')?> The PageStart.php file essentially defines the header. Omitting the boring stuff, it's laid out like so: <html> <head> <title>The Title of the Page</title> <?require_once('styles/PageStyles.css')?> </head> <boring stuff snipped> This works great. The only complaint I have is that there are LOTS of pages on the site, and using this approach means that every page is titled "The Title of the Page" When scanning my browser history, I could have surfed to 30 different pages in the site and they all have the same title. Makes it hard to know which page I'd like to go back to. I'd like to have a way to pass a (sometimes) dynamically generated page title to the PageStart.php file. I say sometimes because certain pages (the Main one for example) will always have the same title, so that could be passed statically. There is another series of pages in which the same php file accesses a MySQL database to display information about various family members, and I'd like that title to be generated dynamically (for example, "All about Mary" or "All about Ted" depending on the person being described in the page). Now I KNOW that with php there's a way to do this. I just can't find it.
Change An Image Based On Landing Page - Possible?
I have 2 landing pages and I need to display a different contact phone number as an image for each page. The thing that's got me thinking is that I need this image (which is in a standard header file) to stay the same for each visitor across all the pages on my site, depending on which landing page they came in from. I need the phone number image to stay the same for 30 minutes even if a user revisits one or more of the landing pages within that 30 minutes. So is a visitor comes in from landingpage1 they see phonenumber1 throughout the site for 30mins - if a visitor comes in from landingpage2 they see phonenumber2 across the site for 30mins. What would be the best way to do this? php? javascript? would it need cookies?
Change Format Style For Datetime Data Type
I don't know how to change the default format style for datetime data type. When I retrieve data from a table the datetime fields are displayed as "day_number month_name Year" but I need it to be displayed as normal form: "month/day/year". I have been trying to do it using setlocal, but I don't know how to use it.
Best Way To Change Values Of Fields Depending On Page Function.
I have at the moment a create_user.php and edit_user.php they are the same, create has <input type="text" value="" name="xx"> for a field, and edit has <input type="text" value="<?=$row['rowhere']?>" name="xx"> - I would much rather have just the one page where if page function was edit then it calls in the row otherwise leaves value blank. How can I do this other than if ($pagefunction == "create") { echo "<input type="text" value="" name="xx">"; } elseif ($pagefunction == "edit") { <input type="text" value="<?=$row['rowhere']?>" name="xx"> } on every field!?
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?
How To Change Template Menu Link Text Color For Page Currently Viewed ??
Say you have a left menu that stays the same on every page within in your site. Obviously you would make this menu a template or library item, so that when you edit one version, all the others are updated. Let's say the left menu is the following: Page_1 Page_2 Page_3 Now, when I am viewing Page_1, I want the "Page_1" text in the left menu to be red, so that the viewer knows what page they are on. When I click on the left menu link for "Page_2", then I want the "Page_1" text to go back to black and the "Page_2" text to be red.
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.
Change Website To Php,mysql Data-driven Website
At the moment this site is not completely php. How can I make the content of the pages be from a mysql database? and how do I make the nav buttons work correctly connecting to the mysql database and displaying the correct content, ?
Getting Data From Another Page
Is there any way I could get the information from this page (http://www.domain.com/rankcapture.php?name=dylandcor2&check=true) such as level and experience into a variable so I can use it to create an image. The page that is linked isn't mine, so I don't know how it is set up. I know how to create the image, I just can't seem to get all of the data out of the page.
Page Keeps Caching Old Data, How To Fix?
i have a php page that has a series of check boxes in it and you press the update button after unticking some boxes and ticking others. after the page updates the changes actually take place in the database but the page displays the old state where it was before you ticked and unticked the boxes. as soon as you press Ctrl + F5 it actually updates the page to what is in the database. how can i fix this so when i press the update button it refreshes and doesnt cache the old state? i have the following in the header but it dont seem to work, is there anything else i need to do? <meta http-equiv="pragma" content="no-cache"> <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
Display Data On Page
Ive got my page set up correctly as far as getting data into the database goes however I am not sure how to display it all on the page. Basically I have a news table: news_id, club_id, title, news I would like to display all the news items associated with the club that the user is logged into. Id like each news item to be separated so that its easy to identify they are different news items e.g. __________________________ $title $news __________________________ $title $news __________________________
Extract Data From A Web Page?
with PHP, can somebody direct me or give me some insight on how to go about extracting data from a web page. Say I want to pull sports statistics from a page.. how is this done?
Cant View Data On My PHP Page From MySql DB.
Im working on a character generator for a PHP game Im trying to get going but Im having trouble getting data from my mySql database. I created the table and added all the columns using this file:
IE+Page Refresh+Resubmitting Data
I am in the processing of developing a site making use of PHP and MySQL. The problem I am experiencing is that when I refresh Internet Explorer, the data that was processed by a form is resubmitted to the database - can anyone tell me what the correct process is to avoid having this happen. The only thing that comes to mind is to, after the processing is complete, redirect to another screen - ultimately I would like to avoid doing that.
Trying To Display 1 Row Of Data On Static Web Page
I have a database with about 600 rows of data, and about 40 fields. I want to display 1 row of data at a time and populate it into a static web page in misc areas on that web page. I am having trouble displaying the results! Do I still need a loop even though I want one record at a time? Code:
Page Reloads Keep Entering Data In Db
The problem is I have a small form that allows a user to input data into a database. Everything works fine, after a successful submission, the user get a message saying that their info was accepted. The problem is that if that page is reloaded, it enters the info again. There is only going to be one person doing the submitting so I could explicitly say...DO NOT RELOAD the page, but that seems kinda half as**d.
Echo RAW Data From Unicode Page?
How can I print raw data (string) from a UTF-8 .php file? Simple echo $var ouputs unicode string to browser (with unicode prefix bytes), but if I want to ouput BLOB data (jpeg file)?
Loading All The Data Of A Page Into A Variable.
I was wondering how you would go about emulating header('Content-Type: application/csv'); header('Content-Disposition: attachment; filename=' . 'test' . '.csv'); but instead of getting a file...I would like to load all the data into a variable. Is this possible?
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?
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?
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?
Read Data From External Page?
I have tried to think of a solution to this problem, but i can't find it. My question is: If possible, how do you from your own page confirm that a form has been send from an external page?
Importing Data To MySql From Web Page
I'm using Drupal(a CMS), along with MySQL and PHP to import data into a database. I'm trying to import a bunch of sentences on one page into the database, but each in their own row. For example: News ----- Brand new site New employee hired New work acquired Basically, I need to know how to pull those into the database as one row each, instead of pulling all three elements into the database in the same row. They're all stored in a $content tag, b/c I wrote the page in PHP. So, any ideas on how to make it, so I can insert the $content into the database, but at a line break, I need to insert a new row?
INSERT Data On Page Load?
I have an avatar system where certain avatars are locked until the user unlocks them by going to certain pages of the site. So far ( being the newb I am ) I only know how to INSERT data from a form. Is there a way to do it on page load or similar? I also need it to first check if the data already exists and if not it inserts the data and then displays a message to the user that they have unlocked the avatar. Code:
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?
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:
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.
Send Data To Print One Page At A Time
I currently have a script together that will display one record per page and allow the user to manually click through pages to view the next record. How can I translate this to printing the data? I want to be able to print the data one page at a time, but only send one print job to do this? I have never done this before, but would imagine it is possible....
How To Pass Current POST Data To Next Page ?
I got 2 php pages, called A.php and B.php. A.php will display all the selected records to the user and ask for confirmation before any attempt to delete. Let say the user click on the submit button, the action of the form is pointed to B.php. So my problem is, how can I pass all the current POST data in A.php to B.php as well ? I need that cauz the POST data in A.php contains the data needed like ID, to perform the deletion. I can manually write a VBScript to transfer the existing data into a query string and transfer it to the next page. However, it's not a POST data in nature. It wil become GET data right ? So what should I do ?
How To Print Data On Paper With Header In Each New Page?
I am getting stuck at a point in my project. I would like to give functionality of print data from site. but there is a problem is that if there are lots of data which takes multiple pages to print then I need to show header that indicates coloum name at top of each page so can any one help me how to do that. the main problem is there are muliple line for each row so I could not make condition depends on some fixed rows concept. So Please keep this in mind. Let me give u visual for my problem. First Page will prints as follow:
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.
Populate A Calendar Page With MySQL Data
I'm trying to figure out the best way to populate a Calendar page with data from a database. I have the code that will generate the Table with Days of the week, but I'm at a loss on how to populate this with data from a database. Do I build the calendar and then for every day that I generate a cell, query the DB or should I load the DB in an Array and compare that to the date of the cell?
Making A Basic Data Editing Page
Alright, I want a page where the administrator has rights to edit the user data by msql_query("UPDATE..."); I know how to do this no problem Because some fields are drop down menus or fields and most of the old data is entered taking the info from the SQL database. How can I make it so if you only change the username so it won't change the password and the email and so on.
Dynamic Include Page Post Data
I have a index file which carry content as included page. Its take parameters like this (index.php?page=katlist). So I am trying to send data from form inside page as (index.php?page=katlist&searchterm=blabla) but I dindt success.....
|