Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php include("top.html");
- $url = 'http://raromero.millersville.edu/Lab8/nerdluv.php';
- $data = array('$name' => '$_POST["name"]',
- '$gender' => '$_POST["cc"]',
- '$age' => '$_POST["age"]',
- '$ptype' => '$_POST["personality"]',
- '$os' => '$_POST["favoriteos"]',
- '$minage' => '$_POST["minage"]',
- '$maxage' => '$_POST["maxage"]');
- // use key 'http' even if you send the request to https://...
- $options = array(
- 'http' => array(
- 'method' => 'POST',
- 'content' => http_build_query($data)
- )
- );
- $context = stream_context_create($options);
- $result = file_get_contents($url, false, $context);
- ?>
- <div>
- <h1>Thank you!</h1>
- <?php $username = $_POST["name"]; ?>
- <ul>
- <li>
- Welcome to NerdLuv, <?="$username"?>!<br><br>
- Now
- <a href="matches.php">
- login to see your matches!
- </a>
- </li>
- </ul>
- </div>
- <?php include("bottom.html"); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement