Thread Closed  Post Thread 

Help With PHP Message Boxes
Author Message
chaneguye
Member



Posts: 125
Group: Registered
   
Cash: 0.00 Donate
Help With PHP Message Boxes

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?


Rosetta Stone Chinese
Rosetta Stone Arabic
09-07-2011 06:36 PM
Send the author a private message Visit authors website Find all posts by this author Quote this message in a reply
Affiliate Banner
This is an ad revenue sharing forum
Leonardo74
Junior Member



Posts: 3
Group: Registered
   
Cash: 0.00 Donate
RE: Help With PHP Message Boxes

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.

*****


***** private limited
09-16-2011 09:29 PM
Send the author a private message Find all posts by this author Quote this message in a reply

Thread Closed  Post Thread 


View a Printable Version | Send this Thread to a Friend | Subscribe to this Thread | Add Thread to Favorites
Rate This Thread:
Forum Jump: