LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problem with html form (https://www.linuxquestions.org/questions/linux-software-2/problem-with-html-form-49949/)

meluser 03-15-2003 08:22 AM

problem with html form
 
hi

please can someone tell me where i can find a html forum, or maybe someone can help me, please.

Mel
----------------------------------
the problem is as follow:

we have a search.php, the search action goes to index.html.

now index.html has 2 frames, mainmenu.php, and welcome.html.

the problem is when i do a search in search.html, and press go, it brings up empty results.

http://cctv.dundee.ac.uk/test/test/index.html

i have tried to change action to mainmenu.php. the reuslts are right, but index does not show as would be expected.

Regards,
Mel

niknah 03-15-2003 09:20 AM

your url doesnt work,

the action=... should not go to a .html file, it does nothing.

meluser 03-15-2003 10:40 AM

sorry

http://cctv.dundee.ac.uk/test/test/search.php
this page action is set to mainmenu.php, i get the right results:

http://cctv.dundee.ac.uk/test/test/m...bmit=Send+Data

but i would like to display these results inside the frame, rather than taken a whole page.

http://cctv.dundee.ac.uk/test/test/index.php

Thanks,
Mel

niknah 03-15-2003 10:58 AM

the action to search.php should be set to index.php

and in index.php you should replace your <frame with...

<frame src=mainmenu.php?" . $QUERY_STRING . ">

meluser 03-15-2003 12:28 PM

thanks,

still not working:

<HTML>
<HEAD>
<TITLE> Welcome to my Web site! </TITLE>
</HEAD>

<FRAMESET FRAMEBORDER=0 COLS="150,*">

<FRAME NAME="menu" src=mainmenu.php?" . $QUERY_STRING . ">

<FRAME NAME="main" SRC="welcome.html">

</FRAMESET>

<NOFRAMES>
<H1>Welcome!</H1> <P>This site was designed to use frames to provide a menu bar to ease navigation; however, your browser does not support frames. Click <A HREF="welcome.html">here</A> to go to the main page of our site, where you can use the alternative links we have provided to get around the site.
</NOFRAMES>

</HTML>


All times are GMT -5. The time now is 01:15 PM.