Jump to content

Search the Community

Showing results for tags 'link'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (Dreamweaver, Zend, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 16 results

  1. I want to link to a special tag, for instance the <h1 id="title1"> tag in external url. Can I do that, how ? I tried , no success: <a href="...freecluster.eu/page=x.html#title1"> link</a> Thanks.
  2. Say I have this link where I've added a product to the cart. https://www.adidas.ca/on/demandware.store/Sites-adidas-CA-Site/en_CA/Cart-Show You will see the cart empty because you're on a different computer and the cookies are unique only to the browser I'm browsing on. Basically what I'm trying to do is have products on my own site and when a user goes to buy them, it will link them directly to the cart/checkout page of that said product on that site(eg. adidas). Is something like that possible to do?
  3. Hello, How can I create a direct link to a webpage contained within a store with a .php extension. For example, if you go to the following webstore: http://tygervinum.com/catalog/index.php Then click on the catagory "T-Shirts" Then click on the t-shirt "Tyger Vinum Logo (silver)" you see the page specifically for this t-shirt with the silver logo. My question is, if you want to direct someone to that specific page, what url would you give them? All I can see is "http://tygervinum.com/catalog/index.php" and that just takes you back to the home page. Any help is appreciated. Thanks, Liz
  4. Could someone please give me advice or redirect me to helpful information on how to safely insert hyperlinks into a MySQL table by members/users of my site. I am particularly concerned about security. Many thanks.
  5. Hello Codingforums, yet again I desire some help to my coding, this time regarding a paypal button. I'm working on a local project of mine in which I wish to let my costumers type the amount of quantities for a product they wish into a text box and then want it to automatically edit the amount of quantities on the paypal page. This works when I have the input inside the form, but due to my template I wish to have my quantity text box outside the "form" code of the paypal button but still want it to connect so that it changes. Let me explain with some code This is the working code for which i can enter the amount of quantities into a text box and it will automatically change it on the paypal page as well. <div id="payment" style="margin-top:10px;"> <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="TEXT" name="quantity" value="1"> <input type="hidden" name="hosted_button_id" value="C5P9LBML2FSC6"> <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypalobjects.com/da_DK/i/scr/pixel.gif" width="1" height="1"> </form> </div> This is what I want it to do, I want to be able to put the input of the quantities text box onto another div and still be able to change the amount of quantities on paypal. (Doesn't change the amount of quantities when clicked on button) <div id="anotherdiv"> <input type="TEXT" name="quantity" value="1"> </div> <div id="payment" style="margin-top:10px;"> <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="C5P9LBML2FSC6"> <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypalobjects.com/da_DK/i/scr/pixel.gif" width="1" height="1"> </form> </div> Thx in advance - rec0il
  6. Hello, I want to know how they keep the same url when page is changing, if you dont know what i mean try the link and check the browser when you wat happens when you click in a other link in the website. ( Website Link ( Normal Content ) ) http://geedmo.com/?item=LushSlider Thanks in advance.
  7. Hi, I am stuck trying to get the link/href statement to work. I have tried so many variations but i get a very persistent error. Kindly help while($rows=mysqli_fetch_array($result)) { $count = $count+1; $field[$count] = $rows['Member_ID']; echo "<tr> <td>".$count."</td> <td> &nbsp ".$rows['fname'].' '.$rows['lname']."</td> <td> < a href = "$_SERVER['PHP_SELF']?id = $count "> Update </a> </td> </tr>"; } It results in this error "Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in D:\xampp\htdocs\xampp\MagicLogin\includes\fra_register1.php on line 84". I have tried the following variations: < a href = "$_SERVER['PHP_SELF']? id = <? echo $count; ?> "> Update </a> < a href = "$_SERVER['PHP_SELF']?id = <? echo $count; ?> "> Update </a> < a href = "$_SERVER['PHP_SELF']? id = <?php echo '.$count.'; "> Update </a> < a href = "$_SERVER['PHP_SELF']? id = <? echo '$count'; "> Update </a> and maybe a few more I did not keep track of but the error persists and I can't figure it out. Please note that there is no actual variable like "id" that i am using in the statement ($_SERVER['PHP_SELF']? id= ) . So far as I know that only used to pass a value back to the program. This could be very stupid but could someone help me out. Thanks.
  8. Hi guys, I am trying to pass an ID with a session to another page. -------- ID: 10 - edit link -------- ID: 11 - edit link -------- ID: 12 - edit link -------- The problem that I am having is that the session stored is always the last ID, in this case 12. $info["HostID"]; comes from the DB. <?php $link = $info["HostID"]; echo '<td><a href="edit.php?id='.$link.'">Edit</a></td>'; ?> <?php if(isset($_GET['$link'])){$_SESSION['hostid'] = $_GET['$link'];} ?> Any suggestions?
  9. hi ive been trying to sort this update button out but i keep getting errors and got no clue how to fix it. heres the code. <?php $con=mysqli_connect("localhost","","","lcm"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $sql = "Select * from tbl_contactinfo"; if (isset($_POST['update'])){ $UpdateQuery = "UPDATE tbl_contactinfo SET Name='$_POST[Name]', Address='$_POST[Address]' WHERE Name = '$_post[hidden]'"; mysql_query($UpdateQuery,$con); }; if ($result = mysqli_query($con, $sql)){ echo "<table border='1'> <tr> <th>Name</th> <th>Address</th> </tr>"; while($row = mysqli_fetch_array($result)) { echo "<form action = index1.php method =post>"; echo "<tr>"; echo "<td>" . "<input type= text name =Name value =" . $record['Name'] . "</td>"; echo "<td>" . "<input type= text name =address value =" . $record['Address'] . "</td>"; echo "<td>" . "<input type= hidden hidden =Name value =" . $record['hidden'] . "</td>"; echo "<td>" . "<input type= submit name = update value=update". " </td>"; echo "</form>"; } echo "</table>"; mysql_close($con); ?> if someone could help id really apreciate it.
  10. Greetings all, I have a bit of challenge that I don't know exactly how to solve. What I am trying to do is open a popup window using javascript and also redirect the page that has the original link on it to a new page. Basically what I want to happen is, user clicks on link, page redirects and a popup window opens at the same time. Sort of like having two links in one. Here's what I tried. It didn't work. echo ' <a href="sectvideo.php?sect=' . $row[0] . '"> ' . "<a href=\"javascript:create_window('".$row[1]."',640,360)\">" . ' <div id="historyUniqueWrap"> <div id="historyUniqueImage"> <img src="'. $row[2] .'"/> </div> <div id="historyUniqueTitleMessageWrap"> <div id="historyUniqueTitle"> <h4>Section: ' . $row[0] . " >>" . '</h4> <p>' . stripslashes($post1). "..." . '</p> </div> </div></a></a> Any ideas? Best Regards, Nightasy Edit: I just had an idea, I could set a condition to be met in the page that is being linked to using a GET. That would solve this issue. I'll try that and report back if it works or not.
  11. Hi, I'm creating a blog here: http://test4.neshayasmin.com/ The theme I've used has the comment link at the top of the post, beneath the post title. I want to move it to the post footer on the left. But my knowledge of php isn't too good so I'm not sure what php file to look in for the code snippet of the comment link, or what the code looks like. Any help would be appreciated.
  12. Hi All I have a few links in a page which will direct to 1 page. And in that 1 page, there is a iframe link which will direct the user depending on the link attribute name from the previous page. For Example on previous_page.php, i have the following link: <a id="asia" href="next_page.php">Asia</a> <a id="europe" href="next_page.php">Europe</a> <a id="america" href="next_page.php">America</a> When selected, it will direct to the next_page.php where there will be an iframe. I've coded the iframe as follows: <iframe src="http://myurl?c=<?php echo $continent; ?>&a=PTT03353"></iframe> where $continent will be define by the previous page a tag ID. How do i achieve this?
  13. I'm pretty new to php, not so new to programming. My problem is really simple, and seems almost impossible to search for. When I reference an html link, the // renders everything after http: as a comment. I'm trying to learn to write webbots. This is the first basic lesson of the book "Webbots, Spiders and Screenscrapers": $target = "http://www.example.com/index.html"; $file_handle = fopen($target, "r"); while(!feof($file_handle)) echo fgets($file_handle, 4096); fclose($file_handle); It fails on both my Linux machine and Mac. "Parse error: parse error in Command line code on line 1". In the editor (nano) I see that everything after http: in line 1 is highlighted as a comment. This is straight from the book. What am I doing wrong?
  14. if wee have $description =[/color][font=monospace][size=1]<strong>[/size][/font][color=#000000][font=monospace][size=1]Svetaca [/size][/font][/color][font=monospace][size=1]</strong>[/size][/font][color=#000000][font=monospace][size=1]na „Mestalji“ u prvom meču osmine finala Lige šampiona, pristalice pariskog kluba su istakle transparent [/size][/font][/color][font=monospace][size=1]<strong>[/size][/font][color=#000000][font=monospace][size=1]„Kosovo je Srbija“[/size][/font][/color][font=monospace][size=1]</strong>[/size][/font][color=#000000][font=monospace][size=1] na engleskom jeziku, uz srpsku trobojku.[/size][/font][/color][font=monospace][size=1]</p>[/size][/font][font=monospace][size=1]<p>[/size][/font][font=monospace][size=1]<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"425\" height=\"350\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0\">[/size][/font][font=monospace][size=1]<param name=\"src\" value=\"http://www.youtube.com/v/ri2RXhr4FS8\" />[/size][/font][font=monospace][size=1]<embed type=\"application/x-shockwave-flash\" width=\"425\" height=\"350\" src=[url="http://sportskevesti.co/%22http://www.youtube.com/v/ri2RXhr4FS8/%22"]\"http://www.youtube.com/v/ri2RXhr4FS8\"[/url]>[/size][/font][font=monospace][size=1]</embed>[/size][/font][font=monospace][size=1]</object>[/size][/font][font=monospace][size=1]</p>[/size][/font][font=monospace][size=1]<p>[/size][/font][color=#000000][font=monospace][size=1]U pitanju je navijačka grupa [/size][/font][/color][font=monospace][size=1]<strong>[/size][/font][color=#000000][font=monospace][size=1]Karsud[/size][/font][/color][font=monospace][size=1]</strong>[/size][/font][color=#000000][font=monospace][size=1], koja sebe smatra ultrasima i nije na dobrom glasu u Francuskoj zbog huliganizma.[/size][/font][/color][font=monospace][size=1]</p>[/size][/font][font=monospace][size=1]<p>[/size][/font][color=#000000][font=monospace][size=1]Isti transparent navijači [/size][/font][/color][font=monospace][size=1]<strong>[/size][/font][color=#000000][font=monospace][size=1] How wee can extract only youtube link?
  15. Hi, I'm trying to get my first lines in PHP. I have read some tutorials, but since I'm not a programer is a little hard for me to get it straight. Could someone help me out to put the following javascript into php so I could just call php from my HTML, something like MySelect and get the selector. <h3><font color="#3EA99F">Categories</font></h3> <select id="mySelect" onchange="if(this.options[this.selectedIndex].value != ''){window.top.location.href=this.options[this.selectedIndex].value}"> <option>Select an option</option> <option value="site1">Orange</option> <option value="site2">Pineapple</option> <option value="site3">Banana</option> </select> Thank you so much More Explanation: I want to have something like MyFile.php where I have definied the Selector, so I can call MySelect from Index.html and write the select in the html, so If I have 400 .html pages, I do not have to change the code in the 400 pages if I want to add a value or make any change, but just made the change in MyFile.php.
  16. I know how to validate URL in PHP by using the FILTER_VALIDATE_URL or simply, using regular expression. However, I want to know how I can validate a URL to see if it contains file. For example: www.xxxx.com/abc.exe, www.xxxx.com/abc/abc.jpg, etc... As you see, the links contain a file, one has an executable and the other has an image. I want to know, how I can validate a URL to know if it has a file or not? Because I do not want URL with contain file to be in my form! So, any regular expression or other way to do that?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.