Jump to content

Recommended Posts

i am really new to all this, so try and be gentle. i have two questions:

1) I am having users at my site submit a php form in parts, but after each part, the information is getting stored in the mysql database. on the last page, i want to have a confirmation page that lists only the fields that do not have empty values in a table. so, on the html table side, i set up a foreach loop of an array that prints out the table cells... however, i'm not quite clear on how to do the query for mysql. not only am i not sure how to do the query, but i am also unclear on how i can get the label along with it (so, what i mean is, have it know to print "first name" in the left cell and "[the first name value]" in the right cell. although, i would assume the [first name value] is simply the value of that array cell).

2) the php on the web server I am using is php 4.1 i believe. for storing and calling passwords, i have $_POST['password'] in the query string, which I have read is not great because of sql-injects. using quote_smart() was suggested, but my php version doesnt support that. how else can i securely store/access the password data?

thanks!
marc
Link to comment
https://forums.phpfreaks.com/topic/5603-newbie-questions/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.