Nameslot is a .com-only forum – membership is free with full access; upgrades offer extras like banner ads and newsletter spots. ✅ Signature links are free. No AI-generated posts – share your own insights or risk account removal.
  • Welcome to NamesLot.com Domain Name Forum

    NamesLot.com Domain Name Forum offers a fully open forum to discuss domain industry news and a 0% commission marketplace for you to buy and sell domain names.

    We have reorganized our Marketplace so now it is easier to get attention to your domain while it is also easier for buyers to find the right domain name.

    If you want us to add more threads to our marketplace, please contact us! Listing on our marketplace as always, 100% free! Register NOW or Login HERE!

Help With PHP Message Boxes

Status
Not open for further replies.

chaneguye

New Member
I have a script which creates a message box, and I want to use it for a form validation. When the form is submitted, if the required data hasn't been entered the message box pops up and tells the user to make sure all their data is correct. The problem is, I don't know where abouts I should include the script file!!

the order form is called order.php
the message box script is called msgbox.inc.php
the final page is called process.php

Where should I put the script? If I put it in order.php then the script will run every time the page is loaded. But if I put it in process.php then it will run on the wrong page. Would it work if I use the isset() function on the order page to check if the form has been submitted?
 
You have to check condition whether all data are correct using if statement. If data is wrong call the script. Otherwise redirect to process.php.
 
Status
Not open for further replies.
Top