adam2326
05-09-2009, 01:30 PM
Hi I currently have this form:
<form name="form1" id="form1" method="GET" action= "edit_bookings_action.php">
<label><span>Booking ID</span>
<input type="hidden" name="booking_id" value="<?php echo $row["booking_id"]; ?>" /><?php echo $row["booking_id"]; ?> />
</label>
<label><span>First Name</span>
<input type="text" name="first_name" id="first_name" class="input-text" value="<?php echo $row["first_name"]; ?>"/>
</label>
<label><span>Surname</span>
<input type="text" name="surname" id="surname" class="input-text" value="<?php echo $row["surname"]; ?>"/>
</label>
<label><span>Email</span>
<input type="text" name="email" id="email" class="input-text" value="<?php echo $row["email"]; ?>"/>
</label>
<label><span>School</span>
<input type="text" name="school" id="school" class="input-text" value="<?php echo $row["school"]; ?>"/>
</label>
<label><span>Address</span>
<input type="text" name="address" id="address" class="input-text" value="<?php echo $row["address"]; ?>"/>
</label>
<label><span>Town</span>
<input type="text" name="town" id="town" class="input-text" value="<?php echo $row["town"]; ?>"/>
</label>
<label><span>Postcode</span>
<input type="text" name="postcode" id="postcode" class="input-text" value="<?php echo $row["postcode"]; ?>"/>
</label>
<label><span>Contact Number</span>
<input type="text" name="number" id="number" class="input-text" value="<?php echo $row["number"]; ?>"/>
</label>
<label><span>Preferred Date of Workshop</span>
<input type="text" name="date" id="date" class="input-text" value="<?php echo $row["date"]; ?>"/>
</label>
<label><span>Notes</span>
<textarea name="notes" id="notes" cols="35" rows="10" value="<?php echo $row["notes"]; ?>"></textarea>
</label>
<div class="spacer"><input name="Amend" type="Submit" value="Amend" class="green"/><input name="Delete" type="Submit" value="Delete" />
</div>
</form>
I have been trying to create a button when if pushed will open up an email window which will be addressed to the email address displayed in the email field in the form. Does anyone know how to do this?
<form name="form1" id="form1" method="GET" action= "edit_bookings_action.php">
<label><span>Booking ID</span>
<input type="hidden" name="booking_id" value="<?php echo $row["booking_id"]; ?>" /><?php echo $row["booking_id"]; ?> />
</label>
<label><span>First Name</span>
<input type="text" name="first_name" id="first_name" class="input-text" value="<?php echo $row["first_name"]; ?>"/>
</label>
<label><span>Surname</span>
<input type="text" name="surname" id="surname" class="input-text" value="<?php echo $row["surname"]; ?>"/>
</label>
<label><span>Email</span>
<input type="text" name="email" id="email" class="input-text" value="<?php echo $row["email"]; ?>"/>
</label>
<label><span>School</span>
<input type="text" name="school" id="school" class="input-text" value="<?php echo $row["school"]; ?>"/>
</label>
<label><span>Address</span>
<input type="text" name="address" id="address" class="input-text" value="<?php echo $row["address"]; ?>"/>
</label>
<label><span>Town</span>
<input type="text" name="town" id="town" class="input-text" value="<?php echo $row["town"]; ?>"/>
</label>
<label><span>Postcode</span>
<input type="text" name="postcode" id="postcode" class="input-text" value="<?php echo $row["postcode"]; ?>"/>
</label>
<label><span>Contact Number</span>
<input type="text" name="number" id="number" class="input-text" value="<?php echo $row["number"]; ?>"/>
</label>
<label><span>Preferred Date of Workshop</span>
<input type="text" name="date" id="date" class="input-text" value="<?php echo $row["date"]; ?>"/>
</label>
<label><span>Notes</span>
<textarea name="notes" id="notes" cols="35" rows="10" value="<?php echo $row["notes"]; ?>"></textarea>
</label>
<div class="spacer"><input name="Amend" type="Submit" value="Amend" class="green"/><input name="Delete" type="Submit" value="Delete" />
</div>
</form>
I have been trying to create a button when if pushed will open up an email window which will be addressed to the email address displayed in the email field in the form. Does anyone know how to do this?