LinuXelite
Programmer
HI!
I need a mail script.
I have this HTML code:
<form action='mail.php?sendto=foo@bar.com'>
Enter name: <input type='text' name='name'>
What do you want:<input type='text' name='wduw'>
</form>
Ok... Its easy to program a php script like that:
<?php
return mail ($sendto, '', $name . '\n' . $wduw, null );
?>
But I want to programs a mail script that will work like that...
<?php
for each textbox, checkbox, listbox, option as object
$message .= '\n' . object.name . '=' . object.value
return mail ($sendto, $message, null );
?>
A mail script that can be used with ANY form, without having to code EVERY form object.
Is there a script out there that can do that? Or may be its just impossible with PHP?
Frank,
I need a mail script.
I have this HTML code:
<form action='mail.php?sendto=foo@bar.com'>
Enter name: <input type='text' name='name'>
What do you want:<input type='text' name='wduw'>
</form>
Ok... Its easy to program a php script like that:
<?php
return mail ($sendto, '', $name . '\n' . $wduw, null );
?>
But I want to programs a mail script that will work like that...
<?php
for each textbox, checkbox, listbox, option as object
$message .= '\n' . object.name . '=' . object.value
return mail ($sendto, $message, null );
?>
A mail script that can be used with ANY form, without having to code EVERY form object.
Is there a script out there that can do that? Or may be its just impossible with PHP?
Frank,