Jump to content
Larry Ullman's Book Forums

Recommended Posts

Hi,Larry.

I have a problem. When I use post.php, the information I enter is not displayed on the webpage, but it does exist in the database. Why doesn't the webpage display information? What is the reason? I don't understand.

Thank you for your help.

Share this post


Link to post
Share on other sites

Jack, I'm not Larry, but I may be able to help. To help though, a little more context may be helpful.

When you post the form data, is it posting to the same script you render the web page from or is it posting to a completely separate script? That will greatly affect how you display the posted data.

Thanks.

Share this post


Link to post
Share on other sites
On 1/21/2019 at 8:13 PM, HartleySan said:

Jack, I'm not Larry, but I may be able to help. To help though, a little more context may be helpful.

When you post the form data, is it posting to the same script you render the web page from or is it posting to a completely separate script? That will greatly affect how you display the posted data.

Thanks.

Hi,HartleySan,thank you for you help, but please look,if I am doing this right?For example all links

<a href="login.php?lid">

<a hrf="forum.php?lid> 

<a href="post.php?lid>      method="get"

then 

<form action="login.php?lid">

<form action="post.php?lid">   method="post"

right or error?

thanks

 

Share this post


Link to post
Share on other sites

Hey Jack. Right now you're literally passing the string "lid" around, which won't do anything. You should double-check how the book does it. (Separately, there's no method for A tags but that's not causing your problem.)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×