PHP - How to echo profile page after form submit

I am fairly new at PHP. I am creating a staff management system for a client, and I want to create a unique link and echo the result after the user submits a new profile using a form.

In other words, on form submit, create unique page, and echo.

I’ve been googgling around but I don’t think I am using the right term.

--------------Solutions-------------

What your looking for is URL parameters.

When you submit a form to a particular URL it sends all the form data via the URL parameters.

Depending on the type of submit GET or POST you can see the data in the URL or not.

To fetch the data

1st page

<form method='POST' action='a.php'>
<input type ='text' name='hi' />
</form>

2nd Page

<?php
echo $_POST['hi']; //this is how you access post and they are stored in a key value pair
//with the key being the name. $_GET for get

?>

Category:php Time:2018-11-08 Views:1
Tags: php profile

Related post

  • How to continue runing execution after form submit? 2010-07-03

    I am writing a simple form submit function for a specific site. The script fills the specific form on the current page and submits the form. It MUST also fill the second form which appears after the first form is submited and submit this form too. Th

  • jquery - how to change div text after form submit 2009-08-24

    i have a form to enter directions and display a google map <form action="#" onsubmit="setDirections(this.from.value, 'address', 'en_US'); return false"> Outside the form i have the following: Formatted Directions<div id="printdirec"><a

  • PHP redirect to different page after form submit 2016-11-11

    Here's the first bit of my form code <form action="PHP/form.php" id="msform" method="post"> <fieldset id="owner_service"> <h2> ARE YOU A DOG OWNER OR SERVICE PROVIDER?</h2> <legend>owne

  • How to display a changed db row on the listings page after form submit, when the listings page pulls from a db that is updated every 10 minutes? 2011-09-12

    I have a listings page which is built from a query to a query data store (EG: solr) that is updated (in bulk) every 10 minutes from the primary (relational) database. When a user clicks on 'edit' for a row (or clicks on 'create' to create a new row),

  • php html retain selected field value after form submit 2011-03-21

    I'm trying to choose a selection from a drop down list and submit the value with POST, set the value to a variable when the page reloads, and set the drop down list to the previously selected value but it is not working. Here is my code: <?php $Bo

  • How to get uploaded files after form submit using uploadify? 2011-10-09

    Question: I have a form with a textbox, file browse(uploadify) and a submit button. I am submitting this form via AJAX. When I select a file using file browser, it is automatically uploaded to a folder defined against folder option. Now after submitt

  • Removing Browser Tool bar from next page after Form Submit 2011-09-20

    I have a form like this - <form method='post' name='FormName' action="next.jsp"> <INPUT TYPE="hidden" NAME="language" value="en"> <INPUT TYPE="hidden" NAME="country" value="US"> </form> I am submitting the form using - <scr

  • How to reload a page in php after form submit 2013-07-01

    An invoice will be opened in a new window when the Generate invoice button is clicked. Below is the sample code. For Example <form name="invoice" action="inv_rec.php" method="post" id="inv" target="invoices" onsubmit="return check_counter();" >

  • How to rerender part of page after ajax submit of form in Lift (Scala) 2011-12-13

    this is probably a stupid question but I cannot figure out how to do it. So I'm new to Scala/Lift and I read the ajax form chapter in http://simply.liftweb.net/index-4.8.html#toc-Section-4.8 but the "RedirectTo" in the example does not seem to be ver

  • How to remove literals from input mask after form submit? 2010-08-20

    I'm using Josh Bush's MaskedInput plugin for jQuery in an ASP.NET 3.5 Webform app. How to get rid from the literals in the code-behind file after form submit? E.g: a phone input with the mask $("#txtPhone").mask("(99)9999-9999"); In the code-behind:

  • Is it possible to show upload progress on a page after clicking submit on a non-ajax html form? 2012-04-24

    Is it possible to show upload progress on a page after clicking submit on a non-ajax html form? Would Socket.io allow me to do that? --------------Solutions------------- Not if you're using a standard http form submission to upload the file. You will

  • Right way to redirect after form submit 2011-03-03

    Maybe its a stupid question, but what is right way to redirect user to the success page after form is saved in database? I dont know why, but if I add action="done.php", than the form does not save data to my database. I tried to add header ("locatio

  • JQuery Script reverses output after form submit 2013-12-06

    I'm using the following script to show/hide DIV tags via CSS with the selection of checkboxes in a html form: var $na = jQuery.noConflict(true); $na(document).ready(function(){ $na('input[type="checkbox"]').click(function(){ if($na(this).attr("value"

  • php how to scan full page for all POST variables and then echo at top of page? 2011-08-10

    I can't echo my variable above my CMS include code.. but if I echo the variable after, then it recognizes the $url variable. Here is some code: <?php // here is my CMS inlcude code $template = 'news_script'; $number = ''; $category = ''; include $

  • How To Stop Variable From Resetting After Form Submit? 2011-10-22

    I'm working on a project and I'm stuck with this problem: I have a variable called $category, which if is null or empty is set to 1. After submitting the form, $category++, so it becomes 2. Okay, but at the third submit it doesn't become 3. I checked

  • How to use different pages for form input and results using AJAX 2011-02-10

    So, I have a search form in a php page (top.php) which is an include for the site I'm working on, one php page where all the mySQL stuff happens and the results are stored in a variable and echoed (dosearch.php) and lastly a php page where the result

  • jqTransform: How to keep value after form submit 2011-05-10

    My problem: Retaining the value of form elements after form submission is a common inquiry. I've researched a few solutions relating to select boxes but seeing as how I'm using the popular jqTransform for the aesthetic quality of my form, the said so

  • How to instantly display data after form submission using jQuery and AJAX? 2011-11-19

    I have a PHP form that uses jQuery/AJAX to submit data into a MySQL database table. Currently, I have a message display saying " Done!" once the form is submitted, but would like the actual data to instantly display after it has been submitted. I hav

  • after form submit in jQuery completed in PHP 2011-12-16

    I have a php file and it contains a textfiled and submit button and a div and below is code Page1.php <form name="form1" method="post"> <input type="text" name="email1"> <input type="submit" name="submit" value="send" class="submit_cla

Copyright (C) pcaskme.com, All Rights Reserved.

processed in 4.876 (s). 15 q(s)