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,472
There are 2003 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

My content disappears

Thread title: My content disappears
Closed Thread    
    Thread tools Search this thread Display Modes  
11-20-2005, 04:09 PM
#1
Yang is offline Yang
Yang's Avatar
Status: Member
Join date: Jun 2005
Location:
Expertise:
Software:
 
Posts: 460
iTrader: 0 / 0%
 

Yang is on a distinguished road

Send a message via Yahoo to Yang

  Old  My content disappears

www.singhselectronicworld.com

What's up? I'm getting a problem with a mailing list script. I have it installed and it works fine, but after you subscribe to the mailing list, the codes after

Code:
<?php include("mail.php");  ?>
doesn't load.

If you try to subscribe to the mailing list, it refreshes to page without a footer or a right column (the codes of which come after the php include).

This is where i downloaded the php mailing list script from http://www.web-mailing-list.com/web-mailing-list.zip

I have to fix this to officially finish the website. If anyone can help, it would be appreciated. Thanks in advance.

11-20-2005, 04:40 PM
#2
Jonny is offline Jonny
Status: Member
Join date: Feb 2005
Location: UK
Expertise:
Software:
 
Posts: 335
iTrader: 0 / 0%
 

Jonny is on a distinguished road

  Old

Remove:

PHP Code:
die("Email Succesfully Registerted."); 
from register.php. Replace it with:

PHP Code:
echo "Email Succesfully Registerted."
or sth.

What die does is stop any more php (or any html) after it from executing, so thats why your footer doesn't appear. More info on die() is in the php manual!

11-20-2005, 05:32 PM
#3
Yang is offline Yang
Yang's Avatar
Status: Member
Join date: Jun 2005
Location:
Expertise:
Software:
 
Posts: 460
iTrader: 0 / 0%
 

Yang is on a distinguished road

Send a message via Yahoo to Yang

  Old

Hey Jonny, thanks for replying, but it didn't seem to work

11-20-2005, 05:57 PM
#4
Jonny is offline Jonny
Status: Member
Join date: Feb 2005
Location: UK
Expertise:
Software:
 
Posts: 335
iTrader: 0 / 0%
 

Jonny is on a distinguished road

  Old

Remove the other die()'s then? That's the only problem I can see that would cause that.

11-20-2005, 07:17 PM
#5
Yang is offline Yang
Yang's Avatar
Status: Member
Join date: Jun 2005
Location:
Expertise:
Software:
 
Posts: 460
iTrader: 0 / 0%
 

Yang is on a distinguished road

Send a message via Yahoo to Yang

  Old

That doesn't seem to work either :S

11-23-2005, 04:18 AM
#6
xFS.ShibSta is offline xFS.ShibSta
Status: Junior Member
Join date: Nov 2005
Location:
Expertise:
Software:
 
Posts: 31
iTrader: 0 / 0%
 

xFS.ShibSta is on a distinguished road

  Old

Fatal error: Call to undefined function: ehco() in /home/john/public_html/mail.php on line 21

First off you may want to spell echo correctly...

11-23-2005, 04:26 AM
#7
xFS.ShibSta is offline xFS.ShibSta
Status: Junior Member
Join date: Nov 2005
Location:
Expertise:
Software:
 
Posts: 31
iTrader: 0 / 0%
 

xFS.ShibSta is on a distinguished road

  Old

Also try changing:
Code:
	$link = "INSERT INTO users VALUES ('$name','$email',NOW(),'subscribed','0','')";
	$res= mysql_query($link) or die(mysql_error());
	if ($res)
	die("Email Succesfully Registerted.");
to:
Code:
	$link = "INSERT INTO users VALUES ('$name','$email',NOW(),'subscribed','0','')";
	$res= mysql_query($link) or die(mysql_error());
	if ($res)
	include("main.php");
Then add the message to the top of main.php.

I dont have the your site's code so this is hard to tell excatly what your problem is but that would be what I'd try.
If you want to upload and PM me your site's script I may be bale to help you more.

Closed Thread    


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

  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