Hyperlink And Posting To New Page!
I have a page where I have done a successful query and get search results displayed. Now I would like a link activated so that they can click on the name and go to new page with further details about that company like address hours etc.
View Complete Forum Thread with Replies
Related Forum Messages:
HTML Web Page Hyperlink To Php Web Page
I am still having a problem parsing a html page with php. Code in my HTML is <? php echo '<a href="index.php">Home</a><br /> <a href="login.php">Login</a><br /> ' ?> However the link is to the Login page is: file:///C:/Program%20Files/Apache%20Group/Apache2/htdocs/TeeJayUu/login.php I am using PHP 5.0.2, Apache 2.0.52, MySQL 4.0.21, and Windows XP SP2. All pages are in the htdocs folder and the following instructions have been followed: - Copy php5apache2.dll to Apache's module dir and rename it to mod_php5.so; - Copy php5ts.dll to Apache's bin dir. Finally, add the following line to your httpd.conf file: LoadModule php5_module modules/mod_php5.so Apache has been stopped and restarted. Help - I am lost for what else to do. I want to keep this local until I have got it working.
View Replies !
Identifying A Page Via Hyperlink
I have a page (product_wide.php) that displays sale items. In that page, I "include" a 2nd page that contains hyperlinks to general item categories. The hyperlinks in filternavbar point to product_wide, and display items from the category selected. I need a way, using the same hyperlinks I am using now in filternavbar, to tell, from product_wide, that it was from filternavbar that the link was clicked (as opposed to some other page in the site that takes you to product_wide. I can't change the configuration of the filternavbar url because of duplicate content issues with google.
View Replies !
How To Open Random Flash Page Using Hyperlink?
I'm new to using PHP so please bear with me. I'm trying to create a hyperlink that will open a random Flash page so that users will see a different flash module each time. Here is some of the code that I wrote but I'm not sure if it'll work since I'm not very good at coding. Oh yeah, I'm not using a database either. // random_menu.html <head> <?php $i = rand(0,3); ?> </head> <body> <a href = "www.x.com/random.php?i=$i">x</a> </body> --------------------------- // random.php <head> <?php $i = $_post["i"]; if ($i = = 0){ $value = "a"; } else if ($i = = 1){ $value = "b"; } ...etc. </head> <body> <object> <param name="movie" value="$value"> <embed src="$value"></embed> </object> </body> Please help if you know how to do this.
View Replies !
Hyperlink From Intranet Web Page To Local Files On My Computer
I'm creating a company intranet, and every employee has certain program we want them to be able to run from it, meaning we want the link to the program to be on the intranet page. For example, Adobe Photoshop resides on all the employees computer under "C:Program FilesAdobePhotoshop 7.0Photoshop.exe" However, when I enter that as a hyperlink on the page, it does not run the program. Is there a way to get a web page to run a program on the local host?
View Replies !
IE Trying To Save The Php Page When Posting From Another Page
After installing Apache, and the newest PHP, I find that when i open a php page explorer reads it but if i press a submit button that posts to another page or performs any pho script internet explorer immediately says the file type was unrecognised e.g. stage_2.php was unrecognised would you like to save? I'm unsure why this is happening, perhaps my php.ini file isnt set correctly?
View Replies !
Php Page Without Posting
I have a page (a.php) that accepts input from the user via text boxes. The action of the form is set to the same page (a.php). The When the select button is clicked the following is set <input type=hidden name="updating" value="1">. This is used to update information to a database during the repost of a.php. Is there a way to load a confirmation page after the update and pass data to it on the fly without usine the <form name="arm" method="post" action="a.php">?
View Replies !
Posting To Same Page
I have a script that pulls data from a db. I need a user to be able to update the form info and then have the from refresh or post back to it self with the updated info. I can't seem to get this to work.
View Replies !
Posting Back To The Same Page
I have a website that uses user authentication. The login does a post back to itself to check set usernames and passwords. <?php echo $_SERVER['PHP_SELF']?> sample url: .../admin/login/index.php This is working on a linux box where the end of the php code sends the page off to a ccc.php page for access checking. So after logging in on the index.php page, you eventually get returned to admin/ccc.php. I reused the same code on a windows box and the .../admin/login/index.php takes me to .../admin/login/index.php/admin/login/index.php does anyone have a clue as to what might cause this?
View Replies !
Posting Many Times To Page
I have a situation where I need to post alot of data to a legacy system we have and it takes a long time for the system to do the inserts. I was wondering if there is a way to post without waiting for the response, so I could do say 15 posts one right after another and it would open 15 connections but not wait for them or put them in the background. Preferably without forking if its possible.
View Replies !
Posting To The Current Page
Is it possible to post a value to the current page and display it when the page reloads?. For example if I am on 'page1.php' and usign a form to post a variable to 'page1.php', would this be possible. Possible code below: Any other suggestions if this wouldn't work? This is code for page1. php <?php echo $_POST['selection']; ?> <form action="page1.php" method="post"> <select size=1 name="selection" onchange="this.form.submit();"> <option value="goalkeeper">Goalkeeper</option> </select> </form>
View Replies !
POSTing Data To A Page Without Using A Form Submit.
I'm trying to send data to a remote script (a credit card processing third party) from my site using POST. Currently, I'm doing it using the ususal form dynamically built with my values. This is less than ideal because I want to perform local processing (updating order status in the local database) and then to proceed to the remote script, with resultant values, without relying on the user pressing a [submit] button. Code:
View Replies !
Hyperlink
Im making a select statement and the outputs are in a table but i want the entry of a column to be hyperlink to take to another page Code:
View Replies !
FTP Hyperlink
I want to post FTP hyperlinks to save files from a remote server to a local machine. I tried the following code among other solutions with no luck. Will someone please help or make recommendations? I would like an alert box to pop up providing the ability to save the file in a desired local directory. function downLoad () { $local_file = 'C: estFTP' $server_file = 'path/imagejpg; $conn_id = ftp_connect("ftp Server"); // login with username and password $login_result = ftp_login($conn_id, "ftp user", "ftp password"); $handle = fopen("file to open", 'w'); // check connection /*if ((!$conn_id) || (!$login_result)) { echo "FTP connection has failed!"; echo "Attempted to connect to $conn_id for user $ftp_user_name"; exit; } else { echo "Connected to $ftp_server, for user $ftp_user_name"; if (ftp_get($conn_id, $handle, "file to open (e.g. pdf file, image, etc.)", FTP_BINARY, 0)) { echo "successfully written to $local_file"; } // close the FTP stream ftp_close($conn_id); }
View Replies !
Using Hyperlink
Example code: <?php function myFunction() { echo 'The function ran successfully.' } echo '<a href="xxxxx">Link to myFunction</a>' ?> What do I put in place of x? I want the act of clicking the hyperlink to run myFunction().
View Replies !
Displaying A Hyperlink
I pull a string out of MySQL and display it in an html page using PHP. It automatically becomes a hyperlink but if it is a link to a document (www.web.com/test.doc) it won't translate it into a hyperlink. Does anybody know how I might do this?
View Replies !
Hyperlink Query
I have the following line that prints out a record with a link, when you click the link you get more column information in the record. I want to add another field (State) so that I can narrow down the results. How can I pass both the hcounty as I'm doing now, along with state? to the state7.php file? print " <td><bgcolor=#000000><font color=#000000 font color=#000000 face=Tahoma size=2 ><A href='state7.php?searchid=$line[hcounty]'><img src='buttondetail.gif' border=Ɔ'></img></td> ";
View Replies !
Replacing Www... With Hyperlink
i want to replace all entries of beginning with 'www.' and ending with ' ' with a hyperlink to that substring such as: www.google.com := <a href="www.google.com">www.google.com</> can anyone tell me the easiest way to do this?
View Replies !
HyperLink Validatation
I am wondering what approach I could used to validate links. I am building a simple portal type index and I would like to be able to check for broken links weekly. The Database already has a field for link status. I would like to create a script that checks for broken links and changes the status so a human can follow up on it. I am also wondering about how one would “limit” this program. I mean I don’t care if it takes 2 hours just as long as it does run rampant and cause issues with my host. Any thoughts…? I am not looking for a complete solution just a point in the right direction.
View Replies !
URL Text To Hyperlink
here is what i have $threadx = preg_replace("/((ht|f)tp://[^s&]+)/", "<a href="$1">$1[/url]", $threadx); $threadx = preg_replace("/(S+@S+.w+)/", "<a href="mailto:$1">$1[/url]", $threadx); can someone tell me how to make it better, this one completly screws up existing hyperlinks and <img src=""> tags... need to fix it somehow..
View Replies !
Hyperlink With Parameters
Is this how you print a hyperlink passing parameter action , id, qty to another php script? And printing HTML inside php? I giving three sample code in my program. I use quotation around HTML TAG and code so can read by php print command. 1. Hyperlink with parameter to pass print "<a href = "cart.php?action=Add&id=" . $column['SKU'] . "&qty=1">Add Item</a></font></td></tr>"; 2. Printing HTML tag with PHP print command print "<TR><TH>Title</TH><Price</TH><TH>Description</TH><TH>Add Item</TD></TR>"; 3. Here I try to print a drop down list with Javascript onChange event. Notice that I use concatenation between HTML TAG and PHP code. I use to respesent quoatation mark. // print the drop down that will update the qty instantly using Javascript onChange event // the following syntax will look like this in regular HTML code // <select name = "$column['SKU']" onChange = "upDateQty(this)"><option Selected>i</option></select> print "<tr width = 15% height = 25><td width = 15% height = 25><font face = verdana size = 1 color = black>"; print "<select name = "" . $column['SKU'] . ""onChange = "updateQty(this)""; for ($i = 0; $i <= 20; $i++) { print "<option"; if ($rows['QTY'] == $i) { print "SELECTED"; } print ">" . $i . "</option>"; } print "</select></font></td>";
View Replies !
Hyperlink In Email
I have a script where I can send an email. However, in the message of the email i want to send a link to a webpage but can't do it cuz i get errors. I have used <a href </a> but this doesn't work. it just appears as normal text. $message = "message for the email"; $message .= "antoher message"; $message .= "<a href='testing www.google.co.uk'></a>";
View Replies !
Putting A Hyperlink
I am running a bog standard formail style contact details form. I'm a newbie at php but the scripts I have downloaded seem to work very well. What I wanted to do was include a hyperlink into the php generated 'thanks for submitting your detail' page. This guide the user to a free audio download that he/she recieves as a thankyou for submitting the details. I have tried to include a hyper link into the code in the normal way but this messes up the php response. Can anybody offer any help or point me at a tutorial. here is the code I'm working on... echo "<body bgcolor="#AFCDD8" text="#ffffff ext ="arial" link="$link_color" vlink="$vlink_color" alink="$alink_color" $background>cloaked thank you for your submission <a href="jealouskiss.mp3">click here</a> for your free download "; echo "<br><br> "; exit; }
View Replies !
Echo Hyperlink
This has been bugging me for quite a while so wondering if anyone has come accross this type of thing before: My php: PHP Code: onclick="javascript: window.open('current_day.php?day='.$curday.'&month='.$this->activemonth.'&year='.$this->activeyear.'','width=800')">
View Replies !
Display An Hyperlink
In my project,i am getting values from database to my textfield, so after getting values, when i click on a particular value it should open an hyperlink to other frame , displaying an html form, is how can i put an hyperlink inside a textfield,languages iam using-- php, javascript& mysql.
View Replies !
Hyperlink For Download
I managed to display the name of files from a folder but am not able to make it display as a hyperlink such that when i click the link i may download it. <a href="../viraj/project/<?php $filename ?>">Download</a> It display the project directory but does not directly display the file.
View Replies !
Email Hyperlink
I wish to send an email using PHP codes, sendng email no problem. Please guide me on how can I insert into the email a hyperlink, when clicked on this hyperlink you get your connection on a new page.
View Replies !
Individual Hyperlink
God every step i take forward its different. Again am stuck in thhis news. For eg, I got 5 news in my first page so how do i give individual hyperlink to there respective data.
View Replies !
Disable A Hyperlink
How to disable a hyperlink or a textbox or a command button which is in page 2 from page 1? Suppose i have an admin page and a userpage. i have a details page which holds add,delete,view and search links or buttons or textboxes. i want to access all these from admin page.But i want userpage to access only the search feature of details page.
View Replies !
Add A Hyperlink To Flash
I would like to know how to go about adding a link to a flash banner (swf file) that will users to another website. The flash banners are owned by me. I have would like to do it in php code not javascript or actionscript. Also is there a way to add a hyperlink by editing the swf file and resaving it?
View Replies !
Making A Hyperlink
I want to make the first run through on the for loop a hyperlinked field. do { $myrow = pg_fetch_row($result_set,$rows); printf("<tr>"); for ($i=0; $i < $count_ch; $i++) { printf("<td>"); if($myrow[$i]=='') { $myrow[$i]='-' } printf($myrow[$i]); printf("</td>"); } printf("</tr>"); $rows++; } while($rows < $rowsnum); } printf("</table>"); ?>
View Replies !
Hyperlink Problem
I'm a newbie and have only been doing php and mySQL for almost a month so bear with me. I have been trying to make a hyperlink in my php code from a mySQL table. Let me show you: echo '<p align="center" style="margin-top: 0; margin-bottom: 0">'.'<br><b><font face="Verdana" size="1" color="#FFFFFF">'.$row['website'].'</font></b>' Where in the hell do I insert the code to make $row['website'] a hyperlink?
View Replies !
Get Results Into Hyperlink
Eekkk just cant figure it out, always comes back with a blank page <?php //Paused Clients Query parse_str("$QUERY_STRING"); $db = mysql_connect("localhost", "xxxx","xxxxxxx") or die("Could not connect."); if(!$db) die("no db"); if(!mysql_select_db("xxxxxxx",$db)) die("No database selected."); $acc1="SELECT * from zipcodes where on_off=2 group by groupe_name"; $acc2=mysql_query($acc1) or die("Could not select paused clients."); while($acc3=mysql_fetch_array($acc2)) { echo "<a href="paused.php?'$acc3[groupe_name]'">'$acc3[groupe_name]'</a>""; } ?>
View Replies !
Hyperlink Click
Basically, I want to have five, fixed (based upon the "sections" of my website set navigation bar at the top, and a navigation bar to individual articles within that section (subsections) on the left hand side. Basically, if you're in, say waffle, the left hand menu then changes to show wafle1, 2 and 3, and if you're in comps,you could get to things like networks, services, and maps, for example. However, I don't know how to "get" the left hand menu to change depending upon which section the user clicks on the top menu. I can envisage that each would be given a number, so the code could look something like this: if user clicks 1 //home then show home_menu_list
View Replies !
Dynamic Hyperlink
I am looking forward to making a dynamic link based page, where a particular username is taken from a mysql database and a url is generated which sends that name to a processing php file which will display the profile of that user..how do i send the information in the URL ? i see that its done on forum pages when we say forumdisplay.php?f=2 , im looking for something similar to be implemented, how is the f=2 interpreted ?
View Replies !
Post-like Hyperlink
I need to make a text link (hyperlink) witch call my php script. BUT i need to use POST method. (no variables in url) i need this look: <a href="script.php?page=2">next page</a> .. but this funcionality: <form action="script.php" method="post"> <input name="page" type="hidden" value="2" /> <input type="submit" value="next page" /> </form>
View Replies !
Echo A Hyperlink
How do I include a hyperlink inside the following echo? HTML Code: echo "<strong>Sorry, you need to login first. Please click here to login</strong><br>";
View Replies !
POST Using A Hyperlink
I'd like to post some information to another PHP page, but instead of using the form buttons, I'd like to use a plain 'ol hyperlink. This is simply for aesthetics for a project I'm working on.
View Replies !
Using A Hyperlink To Retrieve Data? Is It Possible Without?
I was wondering if it is possible to get data from a database using a hyperlink instead of a form? My situation is I have a page with a list of products (data from a mysql table) and I want to keep the info on the page small so I have limited the description and left out some info. what I want is a link at the bottom of each product that says "more details" and when clicked it creates a new page on the fly to show more info. is it possible to do this without javascript? If so How.
View Replies !
Hyperlink And Passing Of Variables.
I know three ways to pass variables form one page to another. The first one is to declare and set session variable. In this case if one goes to another page (by clicking on hyperlink or pressing a button) value of a session variable will be automatically seen on the new page. The second way is to set hidden variables in the form and go to new page by execution of this form (press a button or enter), and the last way, which I know, is in the declaration of hyperlink after name of a new page put after "?" names and values of variables. Sometimes I need to use the third way. However I do not like that after new page is loaded in the address line of browser one can see all variables (names and values). Can one avoid this problem?
View Replies !
Executing Code Within A Hyperlink
I am writing a photo gallery and suppose 8 photos are displayed. When the user clicks on a button under the picture, I want it to add that picture name to a "favorites" list within the session data, but NOT leave the page the user is on. How could I do this?
View Replies !
Need A Script To Tell Me Where A Hyperlink Originated
Not sure if this is a php or an html question but I'll post it anyway. I have multiple thumbnail images on my catalogue page catalogue.php and they are all hyperlinked to a single page called desc.php that will give an enhanced description of the product selected. I want the desc.php page to print the contents of a text file named ?.txt based on which image was clicked on in my catalogue page. example: if I click on 1.jpg in my catalogue then I want the file 1.txt to be selected and printed on my description page. I know how to print the contents of a textfile and I know how to disect the strings of the filenames so that I can associate 1.txt with 1.jpg. What I dont know is how to retrieve the name of the image file that was clicked on the catalogue page within my script for the desc.php page If I didn't use a hyperlink image and used a form submit button instead on my catalogue page then of course I could use something like: $filename = $_POST['filename'] Hope you understood all of that.
View Replies !
Table Output As Hyperlink ?
i am trying to create a table generated from a MySQL query with some of the output as hyperlinks. in this way i intend that the users of the site click to see the customers registered and then click on the "hyperlink" of their customer id, which will navigate them to details about that user on another php page. PHP Code:
View Replies !
Passing Variables With Hyperlink
I've managed to get a MySQL database up and running and can display the data with PHP to a web page. What I'd really like to do is click on a field on the web page to display another page based on that value. As an example using a membership database, I display an index of member no and member name to a web page. I'd like the member no to be a link that when clicked on would allow me to display the entire member record. I just need to know how to pass the variable from the hyperlink to a php script to do the query.
View Replies !
Hyperlink To An Excel File
I have a hyperlink to an Excel spreadsheet but I'm having a bit of trouble with it. My first problem was that IE6 integrates Excel into the IE window when you click an Excel link. I overcame that by having a dummy Excel file run that had VBA code to launch the real application in a new window. That's probably too much info, but there it is. Moving on. My problem is the users will be opening up this VBA Excel application of mine from our Intranet. When they click on the link, the dummy Excel file runs, that in turn launches the real application and all is well and good. Except for one thing. When the user is done or goes back to the IE Intranet window where they launched the application, this is the error that is displayed: The page cannot be displayed: The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings. My two solutions were to either have the link do two things simulatenously. You would click on the app link and it would run the application and it would also reload the Intranet home page. My second solution was to have them click the link and then it would go back to the previous page they were on all in the same click procedure/event/whatever. Code:
View Replies !
Basic Hyperlink Query
I have a php series of scripts/programs/files which provide a simple calendar/scheduler program. When either an email or web address/hyperlink are displayed within the output, they seem to have the browser default link colours and underline. Altho the output table/content is within a div in the web page, I seem to be unable to apply CSS styles to the div contents in this case. I have even tried !important to no avail. There does not seem to be any HTML tags in the PHP controlling them. Is it possible for anyone to help me to apply CSS styles to these links without you being able see the PHP etc? Ignore this if I am asking for the impossible/impractical.
View Replies !
|