This topic is locked

Checkbox

10/22/2008 11:49:39 AM
PHPRunner General questions
W
whatupcuzz84 author

Hi! I'm am a complete n00b at PHP, but am a fast learner. I need help.
1. What I'm doing is creating a simple database that will allow users to log in and view our inventory. I have that completed.
2. Now i need to figure out how to add a check box in every row and allow my users to check all that they want to order then email it to my email. is this possible??
<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=9932&image=1&table=forumtopics' class='bbc_emoticon' alt=':rolleyes:' />

J
Jane 10/23/2008

Hi,
please see my answers below:

  1. just create project in the PHPRunner and point it to your database. Then create login page on the Securitytab and build your project.

    Thats' all.
  2. make sure you have checked off delete, print or export option on theChoose fields tab. Then proceed to the Visual Editor tab, turn on HTML mode, find this line:
    <!-- delete form -->



and add following code just before:

<A onclick="frmAdmin.a.value='update'; frmAdmin.submit(); return false;"

href="#">Send email</A>


And add some code to theBeforeDeleteevent on the Eventstab:

//delete records

if(@$_POST["a"]=="delete")

return true;
//send email

//add your custom code here

W
whatupcuzz84 author 10/23/2008

Hi,

please see my answers below:

  1. just create project in the PHPRunner and point it to your database. Then create login page on the Securitytab and build your project.

    Thats' all.
  2. make sure you have checked off delete, print or export option on theChoose fields tab. Then proceed to the Visual Editor tab, turn on HTML mode, find this line:
    and add following code just before:
    And add some code to theBeforeDeleteevent on the Eventstab:


What exactly will this do? i was hoping to create another column with check boxes going down the side. please visit my Database to get a good picture. of what i am trying to do.
http://www.islandaviation1.com/db
email: demo@islandaviation1.com

pass: demo123

J
Jane 10/24/2008

Hi,
you can use existing column with checkboxes for your purpose. It is more easy. To add column with checkboxes select Delete/Print or Export page on the Choose fields tab. Then you can remove Delete/Print or Export link on the Visual Editor tab if needed.

And add new button (or link) to send email with selected records as I've mentioned before.

W
whatupcuzz84 author 10/24/2008

Hi,

you can use existing column with checkboxes for your purpose. It is more easy. To add column with checkboxes select Delete/Print or Export page on the Choose fields tab. Then you can remove Delete/Print or Export link on the Visual Editor tab if needed.

And add new button (or link) to send email with selected records as I've mentioned before.


Thanks lol but you have to remember the "n00b" part lol please supply steps sounds like a easy way though:)