asmith Posted November 25, 2007 Share Posted November 25, 2007 if i have a html table like this : <table> <tr><td id="site logo"><img src="site logo.gif" /></td></tr> <tr><td id="content"> <form action="submit.php" \\ submit a user </form> </td> </tr> </table> . . . submit.php <?php // if everything was ok , echo "you are now a registered user"; ?> how can i make the "you are now a registered user" in my html row 2 , in content part without echoing the whole page again ? (the coding above shows "you are now a registered user" in a all white page) Quote Link to comment Share on other sites More sharing options...
revraz Posted November 25, 2007 Share Posted November 25, 2007 Do your PHP first, then print the variable after, along with your HTML. Quote Link to comment Share on other sites More sharing options...
asmith Posted November 25, 2007 Author Share Posted November 25, 2007 example? ??? Quote Link to comment Share on other sites More sharing options...
revraz Posted November 25, 2007 Share Posted November 25, 2007 There are so many, you just have to read 2 pages of posts to find a handful. Search for IF ISSET SUBMIT Quote Link to comment Share on other sites More sharing options...
asmith Posted November 25, 2007 Author Share Posted November 25, 2007 anyway how can i put a link in the script ? i mean i want to tell the script when it everything was ok , then open this link . ? Quote Link to comment Share on other sites More sharing options...
~n[EO]n~ Posted November 25, 2007 Share Posted November 25, 2007 See here there are some basic examples http://www.phpfreaks.com/quickcode.php Quote Link to comment Share on other sites More sharing options...
asmith Posted November 25, 2007 Author Share Posted November 25, 2007 oops i was almost forgot ! i knew it ! thanks guys ! solved! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.