Jump to content

How to implement this


yobo

Recommended Posts

Hey All,

 

I am in the process of learning PHP so I am not an expert by any means.  I am looking for some advice on how I would go about implementing this idea.

 

1. I have a page called addproduct.php with a form and which also includes the header.php file

2. when the form is submitted on the addproduct.php it goes to the database processing script called addproduct-func.php, 

3.  the addproduct-func.php page has a conditional that checks to see if the database query succeeded if so it redirects using the header function back to addproduct.php.

 

however what I would like to implement is some form validation and checking before it gets submitted to the addproduct-func.php and only if validation and form checking passes then goto addproduct-func.php. 

 

I also would like to output a little success msg informing the user that the record had been added to the database just above the addproduct.php form.

 

I am using bootstrap as my css framework.

 

Many Thanks for your time and help

 

J

Link to comment
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.