Jump to content

[SOLVED] Editing Registration Page


Recommended Posts

Posted

I just installed PHPvms and want to edit the register page so that it gets rid of the "select airline" field. I want it to be defaulted to "CFC". Any hellp appreciated, I already tried and failed. Thanks

Posted

Remove this:

<dt>Select Airline: *</dt>
<dd>
	<select name="code" id="code">
	<?php
	foreach($allairlines as $airline)
	{
		echo '<option value="'.$airline->code.'">'.$airline->code.' - '.$airline->name.'</option>';
	}
	?>
	</select>
</dd>

Put this in its place:

<input type="hidden" name="code" value="CFC" />

By doing this will remove the option on the page and automatically set all new registered members as CFC****

Posted

Thanks, it worked :). Got another question, how do I change the pilot ID's so that the staff will be CFC001, CFC002 ... and for new pilots it will default to CFC103, CFC104 ...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...