Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 717 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

Script problem

Thread title: Script problem
Closed Thread    
    Thread tools Search this thread Display Modes  
01-04-2007, 06:14 PM
#1
<3 empee is offline <3 empee
Status: Junior Member
Join date: Mar 2005
Location:
Expertise:
Software:
 
Posts: 49
iTrader: 0 / 0%
 

<3 empee is on a distinguished road

  Old  Script problem

I have a script that I use on my site, LoveToText.com, and I don't know how to go about editing it.

Currently, if you don't enter a subject for example, the page will reload with a message saying 'No subject was provided.'. How do I change the code to make a seperate page load instead of the small error message?

The current code looks like this:

$ERROR1 = "No Message was provided.";
$ERROR2 = "No Cell Phone Number was provided.";
$ERROR3 = "No Email Address was provided.";
$ERROR4 = "No Subject was provided.";
$ERROR5 = "No Name was provided.";


Thanks in advance,

Ed.

01-04-2007, 06:39 PM
#2
Andrew R is offline Andrew R
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
 
Posts: 5,200
iTrader: 17 / 95%
 

Andrew R is on a distinguished road

  Old

What exactly are you trying to do? Redirect to another page if it has an error? If so, add <?php ob_start(); ?> to the VERY top of your page before anything else, then instead of the errors, do <?php header("Location: urlhere"); ?> to redirect.

01-04-2007, 06:41 PM
#3
<3 empee is offline <3 empee
Status: Junior Member
Join date: Mar 2005
Location:
Expertise:
Software:
 
Posts: 49
iTrader: 0 / 0%
 

<3 empee is on a distinguished road

  Old

Thanks for the help, Andrew, but I have found out what I was after.

Mod can lock this if they like.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed