1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Help with a PHP form

Discussion in 'Programming' started by HRA, Feb 2, 2015.

  1. #1
    Hi,

    Please take a look a this:
    http://ramindusri.cu.cc/harsha/

    This is dummy page for a contest I plan to held.
    You can see there is a simple form under No. 03.
    I managed to make it so when a user fill out those two fields, those info will be saved in a txt file using following guide.
    http://www.hotscripts.com/forums/php/17187-form-text-file.html

    Problem I have is when user click Submit button it takes him to another page.
    I want to show him a message in the same page. Something like "We got your info", "Thanks for participating".
    This message could appear under that Submit button or pop-up or something similar.

    Thanks
     
    HRA, Feb 2, 2015 IP
  2. HRA

    HRA Active Member

    Messages:
    314
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #2
    I got it to work with the way I wanted using iframe.

    One more question. Please check the form.
    I want to change the font and color of the msg "Thanks for Participating"

    Now it looks like this:
    print "Thanks for Participating";

    Thanks
     
    HRA, Feb 2, 2015 IP
  3. Shahzad Jameel

    Shahzad Jameel Well-Known Member

    Messages:
    189
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    148
    #3
    If you have the PHP files then you can change the message from there and apply a SPAN to do the styling.

    If using some plugin then do the settings.
     
    Shahzad Jameel, Feb 3, 2015 IP
  4. PabloPlanSo

    PabloPlanSo Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #4
    Hi HRA! I see that you are using WP.

    I invite you to try our Form Builder Plugin, PlanSo Forms: https://wordpress.org/plugins/planso-forms/

    The forms are very easy to build through a drag-and-drop interface and the information entered by your users is sent to you through an auto-responder email. Additionally you can choose between a standard "pop-up" confirming the submission of a form or an individual "thank you page" to which your users are re-directed.

    Feel free to check it out and let me know your point of view.

    Cheers, Pablo
     
    PabloPlanSo, Feb 26, 2015 IP