an alternative to frames.......

Soldato
Joined
6 Feb 2004
Posts
20,793
Location
England
i've googled but i can't seem to find an answer. i'm currently using a frameset to display 2 pages. the first is a form which updates the content in the 2nd page. it works perfectly but everywhere you go, frames seem to have a bad name.... :p

i've looked at using php includes but i can't target the 2nd page with my form action? i've also tried sumitting the form to itself so i only have one page. this does work but unfortunately it reloads the whole page and all the form settings go back to default which i don't want.

so any ideas? :D
 
idont really understand what your siuation is with the forms but i try and help.

other then frames the only thing i can thin kof would be to get the form to submit itself to the same page which would then update the areas.

Can you explain what yor need this for might be able to help better?
 
well the page is linked in my sig. click to see. if you don't have a lastfm account, use my ocuk username to test.... :p

the second page only contains an img src and a textarea which are updated when the form is submitted.

addy_010 said:
other then frames the only thing i can thin kof would be to get the form to submit itself to the same page which would then update the areas.

as mentioned, i've already tried that and while it does update the image and textarea ok, it also resets all the form values which is no good. :p
 
dont quote me on this but i think that you can do something for php to keep the the form information.

for instance, you have it submit the page with all the informatino right, which then displays the relevent stuff below, you then have php put the informaiotn exactly as it was submitted, and then have it so they can again select other things from the list.

that make sense?

ok just thought of an for instance. For instance, when you sign up or somethingh like to a forum, you fill out the fields, then submit the form. When logged in you can then edit the fields, and some will have a drop down menu, with the one you selected (like some have which timezone, or country) as the main one, and then all the rest are still selectable.

So with your site, it would be like you submit the information to a page then does what is needed to be done with the info, and the redisplays the form with the informaiton you submitted by, say querying a database or something like that

that make more sense?
 
Last edited:
i think i understand what you're saying - that i should populate the values on my form with the php data so it would appear that the page hasn't been reloaded? :eek:

there must be an easier alternative. i wouldn't know where to start. :D
 
marc2003 said:
i think i understand what you're saying - that i should populate the values on my form with the php data so it would appear that the page hasn't been reloaded? :eek:

there must be an easier alternative. i wouldn't know where to start. :D

thats exactly what i meant, just you put it in a much much better explantion.

Do you know mySQL and is mySQL and option for use? you could submit the info into a database and the have the php form query the database very easily
 
Back
Top Bottom