Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Tags for this Thread

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    AliOki's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Apr 2009
    Posts
    10
    Downloads
    0
    Uploads
    0

    how to add name to php form?

    I want to be able to post the name the user inputted into the form on he confirmation page. How do I do this? Here is the code:

    $success_message = "<p>Your feedback form has been sent. Thank you for your submission!</p>";


    And I think this is the snippet I want to add (I'm not fluent in PHP) <?php echo $_POST["name"]; ?> as the name of the name field was 'name'.

    How do I add that? Thanks!

  2. #2
    Stone Deft's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Jul 2009
    Posts
    2
    Downloads
    0
    Uploads
    0
    $success_message='<p> thank you' .$_POST['name'].' Your Feedback has been sent.</p> ';

    Use the period (.) operator w/c basically means +

 

 

Quick Reply Quick Reply

Click here to log in


How many letters in the word Rabroad

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How do I add an element to my PHP form?
    By Jamie F in forum Discuss PHP
    Replies: 0
    Last Post: 02-20-2011, 05:01 AM
  2. How do I add radio buttons on php form?
    By gjay17 in forum Discuss PHP
    Replies: 0
    Last Post: 02-17-2011, 04:53 AM
  3. Replies: 0
    Last Post: 09-01-2010, 07:00 AM
  4. Replies: 0
    Last Post: 08-31-2010, 05:22 AM
  5. Replies: 0
    Last Post: 11-03-2009, 05:52 PM

Bookmarks

Posting Permissions

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