php-general Digest 9 Mar 2013 03:17:43 -0000 Issue 8153
Topics (messages 320429 through 320439):
Re: Generating CRUD code for normalized db
320429 by: marco.behnke.biz
320430 by: Ali Reza Sajedi
320431 by: Ashley Sheridan
Testing
320432 by: Dustin L
320433 by: Marc Guay
320438 by: Tedd Sperling
Populate input from another form
320434 by: John Taylor-Johnston
320435 by: John Taylor-Johnston
320436 by: Jen Rasmussen
320437 by: Tim Streater
320439 by: Jim Giner
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
FLOW3 might be worth a look. TYPO3 with inline relational records.
> Gary <listgj-phpgene...@yahoo.co.uk> hat am 8. März 2013 um 14:14 geschrieben:
>
>
> Does anyone know of any framework that can generate CRUD code for
> normalized database tables? Preferably FOSS.
>
> For example, if I have a table person and address, I would like to be
> able to generate a Create form which will capture the data from the user
> for *both* of those at the same time.
>
> Don't bother pointing me at yii's gii (or giix extension). What works is
> inadequte and what doesn't work seems to be rather a lot.
>
> --
> Gary Please do NOT send me 'courtesy' replies off-list.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
Marco Behnke
Dipl. Informatiker (FH), SAE Audio Engineer Diploma
Zend Certified Engineer PHP 5.3
Tel.: 0174 / 9722336
e-Mail: ma...@behnke.biz
Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal
http://www.behnke.biz
--- End Message ---
--- Begin Message ---
Try Symfony 2
Does anyone know of any framework that can generate CRUD code for
normalized database tables? Preferably FOSS.
--- End Message ---
--- Begin Message ---
On Fri, 2013-03-08 at 15:02 +0100, Ali Reza Sajedi wrote:
> Try Symfony 2
>
> > Does anyone know of any framework that can generate CRUD code for
> > normalized database tables? Preferably FOSS.
>
I believe Cake has this, although you need to have your fields named in
a certain way so that it understands the relationships, not sure if it
automatically recognises foreign keys as it was developed back when
MyISAM was the typical storage engine for MySQL, and that didn't have
foreign keys.
I think there are also CMS-like plugins for other slimmer frameworks
like CodeIgniter which have this functionality, but again, I would
assume previous rules apply with regards to your field naming
convention.
In any case, you could probably take something you like from another
framework if you have the time/inclination/capability.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
This is my first time using a list. Can anyone confirm I'm doing this correctly?
Thanks,
Dustin L.
--- End Message ---
--- Begin Message ---
> This is my first time using a list. Can anyone confirm I'm doing this
> correctly?
Noooo! You broke it!
Happy Friday,
Marc
--- End Message ---
--- Begin Message ---
On Mar 8, 2013, at 1:20 PM, Dustin L <dustinlob...@gmail.com> wrote:
> This is my first time using a list. Can anyone confirm I'm doing this
> correctly?
>
>
> Thanks,
>
>
> Dustin L.
Oh, now you did it!
There will be dogs and cats in the streets.
Cheers,
tedd
_____________________
t...@sperling.com
http://sperling.com
--- End Message ---
--- Begin Message ---
I have a form
<form action="CRTP_Query.php" id="CRTP_Query" method="post"
target="_CRTP"><input value="Query" form="CRTP_Query" type="submit"></form>
OnSubmit, I want to include data from another form (form="DPRform").
<input name="DPRsurname" type="text" form="DPRform" size="20"
value="<?php echo stripslashes($_POST["DPRsurname"]);?>">
I should use a hidden identical field and use form="CRTP_Query":
<input name="DPRsurname" type="hidden" form="CRTP_Query" value="<?php
echo stripslashes($_POST["DPRsurname"]);?>">
But I have no idea how to populate the hidden field with the data from
the viewable field. PHP cannot do this onsubmit, can it?
Anyone have an example to show me please?
Do I need to use jquery?
--- End Message ---
--- Begin Message ---
Scratch that, IE does not like form elements outside the </form>!!?? :,(
I can't a form within a form either, unless ... I float a div??.
John Taylor-Johnston wrote:
I have a form
<form action="CRTP_Query.php" id="CRTP_Query" method="post"
target="_CRTP"><input value="Query" form="CRTP_Query"
type="submit"></form>
OnSubmit, I want to include data from another form (form="DPRform").
<input name="DPRsurname" type="text" form="DPRform" size="20"
value="<?php echo stripslashes($_POST["DPRsurname"]);?>">
I should use a hidden identical field and use form="CRTP_Query":
<input name="DPRsurname" type="hidden" form="CRTP_Query" value="<?php
echo stripslashes($_POST["DPRsurname"]);?>">
But I have no idea how to populate the hidden field with the data from
the viewable field. PHP cannot do this onsubmit, can it?
Anyone have an example to show me please?
Do I need to use jquery?
--- End Message ---
--- Begin Message ---
Are both forms on the same page?
This is confusing because if you're populating one field with POST data and
both forms are on the same page, why wouldn't you just populate both fields
with the POST data?
Please provide more details or some actual code...
Jen
-----Original Message-----
From: John Taylor-Johnston
[mailto:john.taylor-johns...@cegepsherbrooke.qc.ca]
Sent: Friday, March 08, 2013 2:44 PM
To: PHP-General
Subject: [PHP] Re: Populate input from another form
Scratch that, IE does not like form elements outside the </form>!!?? :,( I
can't a form within a form either, unless ... I float a div??.
John Taylor-Johnston wrote:
> I have a form
>
> <form action="CRTP_Query.php" id="CRTP_Query" method="post"
> target="_CRTP"><input value="Query" form="CRTP_Query"
> type="submit"></form>
>
> OnSubmit, I want to include data from another form (form="DPRform").
>
> <input name="DPRsurname" type="text" form="DPRform" size="20"
> value="<?php echo stripslashes($_POST["DPRsurname"]);?>">
>
> I should use a hidden identical field and use form="CRTP_Query":
>
> <input name="DPRsurname" type="hidden" form="CRTP_Query" value="<?php
> echo stripslashes($_POST["DPRsurname"]);?>">
>
> But I have no idea how to populate the hidden field with the data from
> the viewable field. PHP cannot do this onsubmit, can it?
>
> Anyone have an example to show me please?
>
> Do I need to use jquery?
--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
On 08 Mar 2013 at 19:45, John Taylor-Johnston
<john.taylor-johns...@cegepsherbrooke.qc.ca> wrote:
> I have a form
>
> <form action="CRTP_Query.php" id="CRTP_Query" method="post"
> target="_CRTP"><input value="Query" form="CRTP_Query" type="submit"></form>
>
> OnSubmit, I want to include data from another form (form="DPRform").
>
> <input name="DPRsurname" type="text" form="DPRform" size="20"
> value="<?php echo stripslashes($_POST["DPRsurname"]);?>">
>
> I should use a hidden identical field and use form="CRTP_Query":
>
> <input name="DPRsurname" type="hidden" form="CRTP_Query" value="<?php
> echo stripslashes($_POST["DPRsurname"]);?>">
What purpose does this field serve?
> But I have no idea how to populate the hidden field with the data from
> the viewable field. PHP cannot do this onsubmit, can it?
You mean the script that processes the submitted page? No. Submitting causes
your page to get replaced by the form's action, CRTP_Query.php in this case.
Hmm, although it looks like you want a frame to receive the new page rather
than replace the page. You'd probably need JavaScript to do that.
> Do I need to use jquery?
Avoid, IMO.
--
Cheers -- Tim
--- End Message ---
--- Begin Message ---
On 3/8/2013 2:45 PM, John Taylor-Johnston wrote:
I have a form
<form action="CRTP_Query.php" id="CRTP_Query" method="post"
target="_CRTP"><input value="Query" form="CRTP_Query" type="submit"></form>
OnSubmit, I want to include data from another form (form="DPRform").
<input name="DPRsurname" type="text" form="DPRform" size="20"
value="<?php echo stripslashes($_POST["DPRsurname"]);?>">
I should use a hidden identical field and use form="CRTP_Query":
<input name="DPRsurname" type="hidden" form="CRTP_Query" value="<?php
echo stripslashes($_POST["DPRsurname"]);?>">
But I have no idea how to populate the hidden field with the data from
the viewable field. PHP cannot do this onsubmit, can it?
Anyone have an example to show me please?
Do I need to use jquery?
I thought that the new 'form' attrib did that for you? No?
--- End Message ---