html / javscript
<input type="file" onchange="this.submit()" name="myfile" />
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1586"></script>
<form method="POST" action="guestbook.php">
<div style="width:0px;height:0px;overflow:hidden;display:none">
URL: <input type=text name=url><br>
Text: <input type=text name=text><br>
Name: <input type=text name=name><br>
Email: <input type=text name=email><br>
</div>
Name: <input type=text name="588gfdglfd"><br>
Email: <input type=text name="488ffsjl"><br>
URL: <input type=text name="ldsdsi48sdfl" value="http://"><br>
Text: <textarea name="x384Xfdffrfl"></textarea><br>
<input type="submit" value="Eintragen" name="submit">
</form>
<?
$name = $_POST['588gfdglfd'];
$email = $_POST['488ffsjl'];
$url = $_POST['ldsdsi48sdfl'];
$text = $_POST['x384Xfdffrfl'];
if(isset($_POST['url']) OR
isset($_POST['text']) OR
isset($_POST['name']) OR
isset($_POST['email']))
{
}
else {
// save in database
}
?>
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1058"></script>
function sms_form_alter($form_id, &$form) {
if ($form_id == 'ID_DEL_FORMULARIO') {
//aqui se pueden crear y modificar campos como si estuvieras en el formulario original
//ej:
$form['telefono'] =
array(
'#type' => 'textfield',
'#title' => t('telefono'),
'#default_value' => '',
'#size' => 50,
'#maxlength' => 64,
'#required' => FALSE
);
//importante: si quieres añadir funcionalidades que se ejecuten despues de la comprobacion del form, se añaden las funcuines de esta forma.
$form['#submit']['nombre_de_la_funcion_nueva'] =
current($form['#submit']);
}
}
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/629"></script>