Setup A Link In My Page That Will Change My Page
I am working on a page with a right column that I want to use for
navigation. In this right column I am using the below code to set a
value for the link. I am using the variable $test right now.
I want to click on the link and when the value is set to a certain
value, say 1, I want the script to run and load a page based on a
switch case. This way I can use different links for navigation that
will load different forms and areas of my application. So here is the
code for the link line. Code:
View Complete Forum Thread with Replies
Related Forum Messages:
Setup My Form To Link To A Page After It's Submitted
I want to setup my form to link to a page after it's submitted. Right now it simply prints out "Thanks for contacting us. Someone will get back to you shortly. Instead, I want it to go to a new page of my choice. How do I do this? I figure its just a command I am unfamiliar with. not entered an email, please go back and try again";} else { $send = mail($to, $subject, $body, $headers); if($send) {print "Thanks for contacting us. Someone will get back to you shortly.";} else {print "We encountered an error sending your mail."; } }
View Replies !
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'.
View Replies !
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.
View Replies !
Php Page Will Not Process Link To Different Page
I have just installed RH Linux ES 3.0 (basic) kernel 2.4.21-9.EL, i686, Apache 2.0.X, and php 4.2.X. I have made no changes to the php.ini. I am trying to use the following page (code listed here) to click on link, and display 1 of three pages. The code does not seem to work, it only shows the "else" condition of the php code, which is page: "stuff.php". What do I need to do to my apache/php config to get this to work? Of course I copied this code from a php site tutorial somewhere. Page code below: <? if ($link == page2){ $page="files/page2.html"; } elseif($link == page3){ $page="files/page3.html"; } else{ $page="files/stuff.php"; } ?> <html> <head> <title> index.php </title> </head> <body bgcolor="#999999"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td colspan="3"><h1>The Template (index.html)</h1></td> </tr> <tr> <td align="center" valign="top"><a href="index.php?link=index"> Page 1 </a></td> <td align="center" valign="top"><a href="index.php?link=page2"> Page 2 </a></td> <td align="center" valign="top"><a href="index.php?link=page3"> Page 3 </a></td> </tr> </table> <? include($page); ?> </body> </html>
View Replies !
How Do I Setup Php Script To Return A Browser Page?
I want the server-side php script to return a browser page that is essentially a copy of the original client page that contained the <form> which referenced the php script in the first place. However, the php script will need to change a couple html lines in that returned page.
View Replies !
Able To Change The CSS Stylesheet Of A Web Page
I am trying to think through the best way to perform the following : I need to be able to change the CSS stylesheet of a web page when the user clicks a link like "click for larger print" I understand basically how this is done but I'm wondering if someone could give me a syntax pointer or two.
View Replies !
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 Replies !
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.
View Replies !
Guestbook Page Change
The only problem i have is that i have lots of messages all apperaing on one page How do uIget the script to start a new page automatically once a certain number of messages have been posted.
View Replies !
Change Page Content?
I want to make a page that has a dropdown menu with 13 options on it and when one of the various options are chosen, make it change the information below to the corrresponding information to that option.
View Replies !
Change Content Of Page...
I have a directory called members, and in it i have a seperate page for each member, but I would rather pass a variable in the url that would choose what to have the page display. so you'd go to "member.php?member=person1", and on the page it would be something like this (this is in javascript, since that's all i know) if (member == "person1") { document.write("This is member one, he likes swimming, ice cream, etc"); } if (member == "person2") { document.write("This is member two, she likes jogging, complaining, coctail parties, etc"); } how would i do this in php? thanks a lot :)
View Replies !
Next Page Link
I have pages, 1.php, 2.php, 3.php and so on. I would like to make a next page and last page links at the bottom of each of them. Is there a way to get the pagename then take the .php off of it, and then add or subtract 1 and then echo that? $nextpage = "(php_self - .php + 1)"; $lastpage = "(php_self - .php - 1)"; I know that is not even close, but use that idea.
View Replies !
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? :)
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 !
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.
View Replies !
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:
View Replies !
Change Form Action Page Value
I am using php cURL session to fetch a page from third party site. I want to add a domain name to the action value of all the forms present in the page. e.g $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$LOGINURL); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,$POSTFIELDS); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_REFERER, $_SERVER['HTTP_REFERER']); curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/'); curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/'); $result = curl_exec ($ch); curl_close ($ch);
View Replies !
Check For Link In Web Page.
I am putting a form on my site that will allow someone to submit a link to me. If they have a return link back to me it will effect the way I display thier link. Closer to the top of the page. What do I have to do in order to see if my link is up on the page they submit.
View Replies !
Redirect At Other Link Page
by php which the fast solution for make redirection at homepage ? Time ago read some solutions, but one most fast because not load or not make a reload of itself page, not remember exactly but was a solution more fast...
View Replies !
Link Display On Same Page?
I want to list the titles of all my articles from my database onto my webpage at articles.php. Then when the users click on each title, the individual articles will load on the same page. I'm new to PHP/MySQL, so here is what i've done so far. row[0] as my unique id numbers for each article, and i've included it so that i can somehow tell the page to load the article related to the unique id number. Is this all making sense? Code:
View Replies !
Dynamic Web Page Link
I want to create a simple dynamic page where when i click on a link to automatically create the page. What i mean.. I have some news that display by date, and because they will be updated every day i don't want to create a page for each one of these. So when the user goes to the index page of the news(where the news are displayed by date) and clicks on one, I want the php do all the job and create a new web page where it will add the hole text of the "new" the user selected in a page template. How do i do that? Can i use the dreamweaver templates?
View Replies !
Link To Page 2 From A Table
Trying to learn and create my own classified script. on page one main page i was able to read the categories from mysql databse and display the the categories in a 3 col table (row1['category']). what can i add in terms of code so when i click on a category that it takes me to page_2.php carring with it the category i selected (the page must open in the same page)? i tried different version of $_service(php_self) but not getting anywhere. page_2.php will display a sub category which i will work on later.
View Replies !
Unique Page Link
I am trying to make a page have a unique link so people can send it to friends. What I am trying to do is something like: Your Name: Your Friends Name: Submit After that, the next page will display that information and output a unique link where that friend can send the link to other people with the information saved (a unique link [I have PHP Code:
View Replies !
Check Link Page Url
I am trying to find the pages url then see if it contains a certain string. Here is the code I used but doesn't work. <? $link = $_SERVER["PHP_SELF"]; $exp = explode("=", $link); $linkname = $exp[0]; $linknumber = $exp[1]; if($linkname == "/viewpage.php?page_id") { echo $linkname; echo $linknumber; } ?> What I'm trying to do is see if "$_SERVER["PHP_SELF"]" contains a certain page. If it contains "/viewpage.php?page_id" I want it to go into that if statement. The problem is it doesn't Btw I need it to explode it because I need the page id number in the other variable for something later. Also another problem is if the link doesn't contain the "=" sign to explode. Would that cause a problem?
View Replies !
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?
View Replies !
Email Forms - Put As Many Fields Without Having To Change The Php Page
I have a php form emailer that simply emails the website owner and also the customer when they fill in the form. at the moment I have to specify what all the fields are named in the form for it to be send off. I want to be able to put in as many fields as I like without having to change the php page as well as the html form. PHP Code:
View Replies !
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.
View Replies !
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?
View Replies !
Page Numbering - Change My Navigation Menu
i am busy with a image gallery and i have it working. but now i want to change my navigation menu this one: [1] [2] [3] [4] to: <<first [1] [2] [3] [4] [5] [6] last>> i have also this code, (c second code ) but i cant link it to my foto folder and unsort it from 10 to 1 ,like the newest u c first. Code:
View Replies !
Page Title Change To Correspond Theme
I have poetry.php that allows users to select a title of a poem, which passes a variable through the URL and the poem is then displayed on the same page. I figured I should have the page title change to correspond with the poem selected. If no piece is selected, then no special title text is added to the page title. Code:
View Replies !
Change Part Of A Web Page After X Seconds Delay?
I was asking about how to pass a new array number with a page refresh and someone responded: But what I don't understand is why you want to change images like that on page reload, I have never seen it before. That raised the question to me - if I have written out a web page in PHP that has an image displayed on the page - is there a way to have it change the image every 10 seconds? Could you do this with a For Each or While type loop? I thought once the script was parsed it then wrote the page source and it doesn't change on the screen.
View Replies !
Redirect And Change Page Loaded In Iframe
I'm trying to accomplish the following: I would like to have a page (we'll say page2a.php) redirect the user to another page (page1a.php) upon it loading where page1.php has an iframe that loads page2b.php, but only if the user is redirected to page1a.php from page2a.php. for the life of me i can't figure out how to do it. I know it can be done....somehow, it's just that it's been quite a while since i've coded anything so i'm a bit rusty. to be quite honest though, even when i was doing a fair amount of coding, it was by the seat of my pants and quite sloppy i'm sure.
View Replies !
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.
View Replies !
Changing A More Link Into Page Numbers
I have the following code which I've tried to edit to fit some examples others have posted on here, with no luck. I have a page that displays More and Prev links but not the page numbers. How can I change this code to have page numbers instead of the More Prev? PHP Code:
View Replies !
Home Link From Navigation Page
I got a code which helps me to create navigational links and only show 4 results per page. Now I want to add a link on each page such that if anyone clicks on that link it takes it to HOME page. I have added <a href="Home.htm"><b><font size="4">Home!!</font></b></a> inside the loop that generates NEXT and PREVIOUS page link but whenever I click on HOME it does nothing at all.
View Replies !
Add A Link From The Front Page Of Forum
Is there a way I can add a link from the front page of my forum out to my php photo gallery. I would like to make it so instead of clicking on the forum name on the first page which then takes you to a sub forum which then takes you to a thread with the link, To just click on the forum name which takes you to my photo gallery. Next best would be on the front page in the description of the new photo gallery be able to add a link. Which file would I edit to change or add these links? I know I can add a link in the overall_header.tpl but I do not see a way to change the forum name link that takes you from the first forum page to the next.
View Replies !
MYSQL - Link To An Index Page
I'm working on a site which has several hundred articles stored in a MySQL database. On the bottom of the page are two links for the previous and next article. The site has been constructed in such a way that the database has fields containing the url of the previous and next pages (i.e. article.php?recordID=137) and these are pulled out of the DB in the form of links. Rather than them having to add this to the DB every time a new article is added I'm trying to automagically do it in PHP. I've sorted the main part by taking the current article and either subtracting or adding it's ID by 1 to create the prev and next but I'm a bit stuck when it comes to the current (highest) article number. What I want it to do is link to an index page when there is no +1 (or -1 for the start).
View Replies !
Open Link In Included Page
How to include Link that could open in same page rather than going to another page for example, if i include a file in home.php <? include("/index.php") ?> and I want to open up the LINKS in "index.php" in same home.php. example - open "/index.php?p=Hits" on same home.php page I know i could have FRAMES but i dont want to frames in my site
View Replies !
Multiple Page Link Exchange
I am in need of a PHP Link Exchange script (preferably free) that is not for single pages. The use of this script will be for having 4 pages on the website - the home page with paid links for $1, and then 3 other pages for free link exchange (Free Links Page 1, ...2... and so on) If you know of a script out there then please post a link to it here. It would be a huge help to me and I greatly appreciate it. I saw one almost a year ago on the HotScripts Most Poplar page, but cannot remmeber it nor find it in HotScripts now.
View Replies !
Redirect Page Click A Link
I have page1.php. Click a link on it and it goes to redirect.php. This uses a redirect to page3.php. If I click the Back button in my browser when on page3.php, will I go back to redirect.php and therefore be sent to page3.php again? Or will I go to page1.php?
View Replies !
Submit Wont Link To Next Page
I have written this as an answer to some other major issues I had with another form I was trying... The problem now is, If a required field left empty...it links to this page..."ALL GOOD" But when the 'Submit' button is clicked, the page goes white and doesn't show the page reqested... Code:
View Replies !
Current Page Pagination Link
When you use pagination, how do you disable the link for the current page you are on?Example: <a >1</a> | <a href="pagination.php?pg=2>2</a> | <a href="pagination.php?pg=3>3</a> I think you would use some type of php_self code to do this, but I am not sure.
View Replies !
|