Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Preview resume!! Help me

  1. #1
    Join Date
    Jan 2012
    Posts
    52
    Thanks
    17
    Thanked 0 Times in 0 Posts

    Question Preview resume!! Help me

    when anyone give the information of resume like name, education, exp etc..
    on a form they can preview the resume and edit or modify their resume.
    how can i do this?

    ex- when anyone fill up a form for a job recruitment. after that they can preview their resume
    and edit & modify resume. so they can print their resume

    also the company can have the resume by a printed copy of resume.
    so they can choose employee

    please help me

  2. #2
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    So what you'd want to do, is have a form, which they can then submit using the post form action and then retrieved with post, and then redirect to another page with the same form, populated with their previous answers which they could then submit to an SQL table, which the company could retrieve and view from the database and then just print the web page.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  3. #3
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    For example you could have a form like:
    Code:
     
    <form action="edit.php" method="post">
    <textarea cols="50" rows="4" name="resume"></textarea>
    <input type="submit">
    </form>
    Which, when submitted will take you to a page called edit.php. On edit.php, you could have something like:
    Code:
    <form action="thankyou.php">
    <textarea><?php echo $_POST['resume']; ?></textarea>
    <input type="submit" name="submit">
    
    <?php 
    $con = mysql_connect('localhost', 'user', 'pass') or die(mysql_error());
    $db = mysql_select_db('dbname', $con) or die(mysql_error());
        if(isset($_POST['submit'])){
            $resume = $_POST['resume'];
            $SQL = "INSERT INTO table1 VALUE('$resume')"; 
            $result = mysql_query($SQL) or die(mysql_error());
        }
    ?>
    Which then submits the the resume to a database.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  4. #4
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Quote Originally Posted by bernie1227 View Post
    Code:
    <?php 
    $con = mysql_connect('localhost', 'user', 'pass') or die(mysql_error());
    $db = mysql_select_db('dbname', $con) or die(mysql_error());
        if(isset($_POST['submit'])){
            $resume = mysql_real_escape_string( $_POST['resume'] );
            $SQL = "INSERT INTO table1 VALUE('$resume')"; 
            $result = mysql_query($SQL) or die(mysql_error());
        }
    ?>
    You're demonstrating the concept well, but don't neglect the bare minimums of security...

  5. #5
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    Ahhh yes, we should probably make sure they don't try and hack our system while writing a resume
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  6. #6
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Yes. Though the more likely problem is constant database errors

  7. #7
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    Still, we don't want our tables dropped
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  8. #8
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    612
    Thanks
    46
    Thanked 32 Times in 32 Posts

    Default

    Hey guys could a form be used along with a cookie (to save input ) with a review button to preview the info.This way a person can go back and make changes
    where they want or add more until they are happy with the end result.At tha time a button to print and send the info would be there for the obvious reasons
    Thanks,

    Bud

  9. #9
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    You could modify this script.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  10. #10
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    If the intention is to "save" the form submission, and then show them exactly what the saved info looks like, then the original approach bernie suggested is probably best (since you have to save the info to the database anyway).

    If you want the user to be able to work on their resume over a period of time (saving it on their browser, rather than on your server), then the localStorage script would be the way to go - though, as I mentioned above, you'll still need to save it once they submit it.

Similar Threads

  1. Content Slider Resume on Mouseclick
    By mackula in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 12-19-2011, 03:32 PM
  2. Unable to resume slideshow
    By Mirkel in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 04-06-2011, 01:53 AM
  3. Featured Content Slider v2.4 pause and resume
    By Azteccoupe in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 10-28-2009, 03:21 AM
  4. Content Glider resume after action
    By jackavin in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 06-01-2009, 01:18 PM
  5. Resume Size for PDF???
    By TheJoshMan in forum The lounge
    Replies: 11
    Last Post: 08-08-2008, 03:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •