ShoutBox & Iframe Help.?

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
SonnyB
-


Joined: 19 Jun 2003
Posts: 42
Location: New York USA

PostPosted: Mon Aug 18, 2003 8:21 pm    Post subject: ShoutBox & Iframe Help.? Reply with quote

Hello,

The Prob Is, I have the shoutbox runnin through the iframe as displayed here: http://sonnyonline.net
But when you click submit it goes to another page.. how do i get it to stay in page.. when you click submit.? The shout box needs to hit shoutbox.php?submit=yes and then i would like it to redirect back to my index.html.. how can i do that.?
Thanks Sonny
_________________
Regards,
Anarchy03
http://anarchy03.us
AnarchyOnline Ent
aappel03@yahoo.com
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Mon Aug 18, 2003 10:01 pm    Post subject: Reply with quote

Can you show the source code for the 'box??
Back to top View user's profile Send private message Visit poster's website
SonnyB
-


Joined: 19 Jun 2003
Posts: 42
Location: New York USA

PostPosted: Mon Aug 18, 2003 11:00 pm    Post subject: Yeah Sure Reply with quote

Here is The Page That Has To Go In The IFRAME.. But When You Push The SHout Butten It Goes To The Page Not The Index.html Page Were I want it to..
Code:
<table cellpadding=\"1\" cellspacing=\"0\" width=\"100%\">
<tr>
<form action=\"shoutbox.php?submit=yes\" method=\"post\" onSubmit=\"submitonce();\">
<td align=\"center\" class=\"box3d\">
 <input type=\"text\" name=\"postname\" value=\"<nameCookie>\" maxlength=\"25\"

size=\"20\"><br>
 <input type=\"text\" name=\"posturl\" value=\"<urlCookie>\" maxlength=\"60\"

size=\"20\"><br>
 <input type=\"text\" name=\"postmessage\" value=\"Message\"><br>
 <input type=\"submit\" value=\"Shout\"> <input name=\"reset\" type=\"button\"

value=\"Reset\" onClick=\"doClearMessage()\"></td>
</form>
</tr>
</table>

The Code Above I think Has SOmething To DO With It...
_________________
Regards,
Anarchy03
http://anarchy03.us
AnarchyOnline Ent
aappel03@yahoo.com
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address
Kent
-


Joined: 12 Jan 2003
Posts: 137

PostPosted: Tue Aug 19, 2003 1:14 am    Post subject: Reply with quote

in the code do this notice what ive done in the form tag
Code:
<table cellpadding=\"1\" cellspacing=\"0\" width=\"100%\">
<tr>
<form action=\"shoutbox.php?submit=yes\" target=\"FRAME\" method=\"post\" onSubmit=\"submitonce();\">
<td align=\"center\" class=\"box3d\">
<input type=\"text\" name=\"postname\" value=\"<nameCookie>\" maxlength=\"25\"

size=\"20\"><br>
<input type=\"text\" name=\"posturl\" value=\"<urlCookie>\" maxlength=\"60\"

size=\"20\"><br>
<input type=\"text\" name=\"postmessage\" value=\"Message\"><br>
<input type=\"submit\" value=\"Shout\"> <input name=\"reset\" type=\"button\"

value=\"Reset\" onClick=\"doClearMessage()\"></td>
</form>
</tr>
</table>


now in the IFRAME tag do this
Code:
<IFRAME SRC=\"YOURHOUTBOXPAGE \"Name=\"FRAME\"></IFRAME>
[/code]
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group