Jump to content

Jamesking56

Members
  • Content Count

    150
  • Joined

  • Last visited

Community Reputation

6 Neutral

About Jamesking56

  • Rank
    Member
  • Birthday 09/09/1992

Previous Fields

  • Languages
    HTML, CSS, Javascript, jQuery, PHP, SQL, AJAX, Java

Contact Methods

  • Website URL
    http://www.jamesking56.co.uk
  • Skype
    jamesking56

Profile Information

  • Location
    Redditch, United Kingdom
  • Interests
    Web Development, Computers
  1. Jamesking56

    PHP to PDF

    Tried loads off google, they either have issues creating due to CSS or they create it but it displays incorrectly. Looking for a better solution please?
  2. Jamesking56

    PHP to PDF

    I have the same question
  3. Hi, I have a Web Based CV created that uses HTML & CSS. I wish to add a 'Download as PDF' button to it which would link to a PHP page to generate a PDF version of my CV and download straight to their computer. What is the best way to do this in PHP?
  4. Waiting desperately for an answer :(

  5. Hi, I want a URL Rewrite .htaccess file but don't know how to make it for what I need. Firstly, I want it to force www. for my domain. Secondly, I want it to hide the .php extension and add a slash to the end of the url: http://www.example.com/page.php -> http://www.example.com/page/ Thirdly, for my about section I wish to have subdirectories that go to a php file: http://www.example.com/about/company/ -> http://www.example.com/about-company.php Can someone make this into a .htaccess for me?
  6. Hi,I want a staff area that will allow my staff to: - Send Files - Send Messages - See FAQs / Knowledgebase guides - Collaborate together with my Git Repos - Manage their own information - See the staff announcements - Access Links for staff to use - See Meeting dates and times and say whether they're attending or notStuff like that
  7. like an online staff area
  8. Jamesking56

    Staff Panel?

    Hi,I wish to have a staff panel for my company...Does anyone have any suggested systems I could use for my staff panel or would I have to create my own?
  9. The form has been moved to a cPanel server. The upload form still doesn't work (comes back with "Please attach your video")
  10. Still confused <?php$page = "audition";$pagename = "Audition";require_once('core.php');if ($_POST['submit']) { // Process Form then send to Thanks Page $name = $_POST['name']; $email = $_POST['email']; $video = $_POST['video']; $act_desc = $_POST['act_desc']; // Check if the user has filled them in! if (!$name || $name == "") { // No Name! $error = "Your name could not be included with the form. (ErrorCode #3)"; } if (!$email || $email == "" && !$error) { // No Email! $error = "Your Email Address could not be included with the form. (ErrorCode #3)"; } if (!$video || $video == "" && !$error) { // No Email! echo $_FILES["file"]["tmp_name"]; $error = "Please attach your video. (ErrorCode #4)"; } if (!$act_desc || $act_desc == "" && !$error) { // No Desc! $error = "Please tell us about your act. (ErrorCode #4)"; } if (!$error) { // Form Valid! // Upload the video and grab link back if (file_exists("upload/".$_FILES["file"]["name"])) { $filename = $_FILES["file"]["name"] . "_new"; } else { $filename = $_FILES["file"]["name"]; } $upload_file = move_uploaded_file($_FILES["file"]["tmp_name"],"upload/" . $filename); $videolink = "upload/".$filename; // Debug if (!$upload_file) { echo "File Upload / Move failed! (ErrorCode: #13)"; } else { echo "File is fine :). (".$videolink.")"; } // Tell the DB $query2 = mysql_query("UPDATE users SET auditioned = 1 WHERE uid = '".$uid."'"); if (!$query2) { $error = "Could not contact database. (ErrorCode #8)"; } else { // SENT! // SEND EMAILS! $msgtov = "$name has sent a video audition via CUT on Facebook: Facebook Profile: http://www.facebook.com/profile.php?id=$uid Name: $name Email Address: $email Link to Video: LINK Description of Act: $act_desc Please do not delete this email! The Database does not hold records for this information!"; $mail1 = mail($config['email'],"Form Submission (Facebook)",$msgtov,"From: Mailer Bot"); // Mail2 $msgtou = "Thanks for sending your video audition for CUT! If you need any assistance please feel free to email us by replying to this email. We will contact you soon. Our FB Page: LINK"; $mail2 = mail($email,"Thanks for Auditioning for CUT!",$msgtou,"From: ".$config['email']); } } }?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html lang="en"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title><index><?php echo $pagetitle; ?></title> <meta name="generator" content="TextMate http://macromates.com/"> <meta name="author" content="James King"> <!-- Date: 2011-02-03 --></head><body><div id="fb-root"></div> <script type="text/javascript"><?phpif ($top_href) { ?> top.location.href = "<?php echo $top_href; ?>"; <?php} else { ?> window.fbAsyncInit = function() { FB.init({ appId : <?php echo $facebook->getAppId(); ?>, session : <?php echo json_encode($session); ?>, // don't refetch the session when PHP already has it status : true, // check login status cookie : <?php echo $config['fb']['cookie']; ?>, // enable cookies to allow the server to access the session xfbml : true // parse XFBML }); // whenever the user logs in, we refresh the page FB.Event.subscribe('auth.login', function() { window.location.reload(); }); }; (function() { var e = document.createElement('script'); e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; e.async = true; document.getElementById('fb-root').appendChild(e); }()); <?php}?></script><style type="text/css" media="screen"> h1, h2 { font-family: Verdana; } .form { border: solid 1px gray; background: silver; width: 75%; height: auto; }</style><center><?phpif ($auditioned == 0) { ?> <?php if ($error) { echo "<font color=\"red\">Error: <b>".$error."</b></font><br /><br />"; } ?> <h1>Submit your Video for CUT!</h1> <h6>(All Fields are Required And You must live near CUT to attend)</h6><br /> <div class="form"> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" accept-charset="utf-8" enctype="multipart/form-data"> <br /><input type="hidden" name="uid" value="<?php echo $uid; ?>"> <input type="hidden" name="name" value="<?php echo $me['name']; ?>"> <input type="hidden" name="email" value="<?php echo $me['email']; ?>"> Please Attach your Video: <br /><input type="file" name="video" value=""><br /><br /> Please Explain Your Act:<br /><textarea name="act_desc" rows="12" cols="60"><?php echo $act_desc; ?></textarea><br /><br /> <input type="submit" name="submit" value="Submit Video Audition"><br /><br /> </form></div><br /> <?php}else { ?> <p>Thanks for Auditioning! Please check your emails for our reply. If you experience any issues please email us at <?php echo $config['email']; ?>.</p> <?php}?><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like-box href="LINK?v=info" width="292" show_faces="true" stream="false" header="true"></fb:like-box></center></body></html>
  11. Yeah I'm using move_uploaded_file()... Is there a way I can check if the Temporary Name isn't blank?
  12. Well currently my code gets the temporary name and attempts to move it...But I see no file in the folder its moving to?Is it because of Facebook or my XAMPP?
  13. Yeah I've created the form in HTML with the 3 fields but in PHP it seems to ignore the file completely and doesn't bother saving it.I just wanted some clarification on how you would do it.
×
×
  • Create New...