Log In · Register

 
Okay I need a lot of help with this one
SteveZz
post Jan 31 2006, 08:53 PM
Post #1


Helper
****

Group: Member
Posts: 220
Joined: Mar 2004
Member No: 6,673



I had an idea for a website I'm creating but I need an explaination on how to do it. I believe it involves a php file but I don't have the slightest clue how to begin.

I want a site that has an iframe, or a div layer with text inside. And below it I want a textbox and a submit button. I would like to set it up so that any person visiting my site can post onto the page. I don't need any restrictiong on html or anything I just need it so that when a person hits submit it sends what is in the text box into the iframe/div layer above. I hope someone understands what I'm saying. It's kind of like a guestbook I guess you'd say but I want to code it myself. I own a server so I can host any files I just need to know where to begin. Help is greatly appreciated.
 
 
Start new topic
Replies (1 - 1)
flyinglemming
post Feb 2 2006, 03:51 PM
Post #2


Newbie
*

Group: Member
Posts: 9
Joined: Aug 2005
Member No: 201,328



You need to use the "target" form property and give your iframe a name.
I highlighted the relevant areas in an example below :

-----

<IFRAME SRC="/guest.php" WIDTH=120 HEIGHT=150 FRAMEBORDER=0 name="framename" scrolling=no></IFRAME>

<form method="POST" action="/guest.php" name="genava" target="framename" style="margin:0; padding:0">

...
your form fields here like
...
</form>
-----

This will post your form values into a PHP script called guest.php. Only the iframe will refresh when submitted.
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: