General discussion


back to home page after execute a php

By wenjune_2000 ·
the url is httpp://
I am learning php to access my database.
after I execute my insert.php file, the page left my home page frames. how can I stay in the main frame area after the insert.php file.
@mysql_select_db($database) or die( "Unable to select database");


$query = "INSERT INTO CustomerRecords VALUES ('','$FirstName','$LastName','$Email','$OrderPhone','$SecondPhone','$Address','$Note1')";




This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

by Jaqui In reply to back to home page after e ...

it's not the query script doing this.
it's the output script.
is the output being sent with target attribute to keep the frameset?

Collapse -

by amanabala In reply to back to home page after e ...

I looked at your homepage and I think the issue is with the following HTML code:
<form action="insert.php" method="post" target="_parent" >
Since there is no frame called "_parent", the page is opening somewhere else. Your form is in a frame called "showframe" so, please modify the
above HTML code to:
<form action="insert.php" method="post" target="showframe" > and it will work.
Please try and let me know.

Related Discussions

Related Forums