PHP Links within Search App

I came up with a app idea that allows Link Searches for a website. I am trying to get the app to automatically save searches for the user.

Here is some of my code that is written up. What I am trying to achieve is the ability to enter random links from websites that I like and display the links within the app and automatically save the inputs.

Is there a way to save links within a page in PHP? Fairly new to PHP. Sorry!

Here is a link -

    <!doctype html>
    <meta charset="UTF-8">
    <title>Indeed Link Search App</title>
    <script type="text/javascript">
    $(document).ready(function() {
          $('#formid form').submit(function(){
                  $.get('result.php', $(this).serialize(), function(data){
                  return false;
    <div id="container>
    <div id="formid">
    Job Title<input type="text" name="message" value="" /> 
    <input type="submit" value="Submit" /> 
    <div id="result">
    echo '<div style="background-color:#fff; padding:20px">' . $_POST['message'] . '</div>'; 
    echo $message;

There are many ways - though a database would probably be the most suitable solution.

Your thread focus is quite general and it doesn’t look like you’ve made much of an attempt to implement a PHP solution for this (get the PHP done first, and then over-lay it with JavaScript for a more seamless user experience). My advice to you would be to look into interacting with databases using PHP, and then come back here if you have any more specific problems. Good luck!