• 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.

Members online

No members online now.

Forum statistics

Threads
19,887
Messages
69,884
Members
44,590
Latest member
KRS_Infotech
Active members today
2
New members today
0
New threads today
5
New posts today
5

Follow NamesLot on Twitter!

NamesLot proudly supported by

NamesLot proudly supported by

Top