Jump to content

LostAngel

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Everything posted by LostAngel

  1. Where should it be closed? Sorry, this is the correct line of code: <td><a href="confirmDelete.php?recordID=<?php echo $row_ rsRecords [' ID '];">Delete</a></td>
  2. Hey all, i'm getting the following error on the following line of code: error: Parse error, unexpected T_STRING, expecting ',' or ';' Code: <td><a href="confirmDelete.phprecordID=<?php echo $row_ recordsetName ['ID'];">Delete</a></td> Whats causing it?
  3. Hey guys, I just discovered that php can upload files via php..does this mean that a webserver that has a 65mb normal php upload size...is unlimited with ftp via php? Also, does anyone have an examples for say uploading a file from C:\test.crom to a folder inside site.com/public_html_uploads?
  4. I see: <a href="mailto:?body=http%3A%2F%2Fwww.dadsftp.com%2Fuploads%2FLO4Mc4hygSMkCso%2Fc6%20dyno%20predator%20before%20and%20after.jpg">Click here to open new email message with link in the body.</a>
  5. Hello again, I have the following check: <?php session_start(); echo $_SESSION['count']; if ( $_SESSION['count'] == "1" ) { echo "logged in right!<br />"; } <im guessing the redirect code goes here> ?> I want the page to redirect to www.website.com IF $_SESSION['count'] is not 1...when I put a basic html redirect above, it redirected no matter what. I used this code: echo "<META http-equiv=\"Refresh\" content=\"0; url=http://website.com\">";
  6. I'm thinking it must be an outlook thing, as it doesn't do it in thunderbird.
  7. Ken, this is the code I have for displaying the url: $urlvar = "http://www.website.com/uploads/".$rand_folder."/".$filename_name; $urlvar = rawurlencode($urlvar); echo "<a href=\"mailto:?body=$urlvar\">Click here to open new email message with link in the body.</a>";
  8. by the way, this is the mailto link that is created: <a href="mailto:?body=http://www.website.com/uploads/Dzi1NLoOBIUhWtd/c6 dyno predator before and after.jpg">Click here to open new email message with link in the body.</a> But like I said, the hyperlink displayed in outlook cuts off right after C6, but it does display the whole link...just only underlines up to C6 for a link.
  9. Below is the upload script part: if ($action == 'upload') { if ($_FILES["filename"]["size"] > $max_size) die ("<b>File too big! Try again...</b>"); mkdir("./uploads/".$rand_folder); copy($_FILES["filename"]["tmp_name"],"./uploads/".$rand_folder."/".$_FILES["filename"]["name"]) or die("<b>Unknown error!</b>"); echo "<b>File Uploaded. </b>"; // for debug --> $filename --> ".$destination."/".$filename_name."</h2>"; echo "http://www.site.com/uploads/".$rand_folder."/".$filename_name."</br>"; $urlvar = "http://www.site.com/uploads/".$rand_folder."/".$filename_name; $urlvar = rawurlencode($urlvar); echo "<a href=\"$urlvar\">Right Click here and Copy Shortcut</a></br>"; echo "<a href=\"mailto:?body=$urlvar\">Click here to open new email message with link in the body.</a>"; } ?>
  10. Just tried that, and it seems to cut the link off after the first space...so a link that should be: www.site.com/uploads/this is a test.doc turns into www.site.com/uploads/this
  11. I just tried that, and it replaced the spaces with + signs...which is not working when clicked on.
  12. Hello, I have a script that uploads a file to my webhost, then displays a mailto link that automatically places the link in a new message. The code is below: echo "<a href=\"mailto:?body=$urlvar\">Click here to open new email message with link in the body.</a>"; $urlvar is the php variable location of my file uploaded. Is there a way I can have the $urlvar replace any spaces with %20? In outlook, you cannot click a hyperlink that has spaces...it has to be replaced with %20.
×
×
  • 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.