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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...