Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

nabid's avatar
Level 1

i want create customize register page in laravel but it does not submit data

		<!-- FORM BEGIN -->
		<div class="col-lg-10 col-md-10 col-sm-12 col-xs-12 text-center infinity-form" style="width: 600px">
			<!-- Company Logo -->
			<div class="text-center mb-3 mt-5">
				<img src="log_asset/heading.png" width="200px">
			</div>
			<div class="text-center mb-4">
				<h4>Create an account</h4>
			</div>
			<!-- Form -->
			<form method="POST" action="{{ route('register') }}">
				@csrf

				<!-- Input Box -->
				<div class="form-input">
					<span><i class="fa fa-user"></i></span>
					<input id="name" type="text" name="name" placeholder="Full Name" tabindex="10" required>
				</div>
				<div class="form-input">
					<span><i class="fa fa-envelope"></i></span>
					<input id="email" type="email" name="email" placeholder="Email Address" tabindex="10" required>
				</div>

				<div class="form-input">
					<span><i class="fa fa-phone"></i></span>
					<input id="phone" type="number" name="phone" placeholder="Phone Number" tabindex="10" required>
				</div>

				<div class="form-input">
					<span><i class="fa fa-building"></i></span>
					<input id="address" type="text" name="address" placeholder="Address" tabindex="10" required>
				</div>

				<div class="form-input">

					<div class="row">
						<div class="col-md-6 pt-4">
							<p><i class="pr-2 fa fa-user-tie"></i> Please Select a User Type</p>
						</div>
						<div class="col-md-2">
							<input type="radio" id="usertype" name="usertype" value="0">
							<label for="usertype">User</label><br>
						</div>
						<div class="col-md-2">
							<input type="radio" id="usertype" name="usertype" value="4">
							<label for="usertype">Vendor</label><br>

						</div>
					</div>
				</div>

				<div class="form-input">
					<span><i class="fa fa-lock"></i></span>
					<input id="password" type="password" name="" placeholder="Password" required>
				</div>

				<div class="form-input">
					<span><i class="fa fa-lock"></i></span>
					<input id="password_confirmation" type="password" name="password_confirmation"
						placeholder="Confirm Password" tabindex="10" required>
				</div>

				@if (Laravel\Jetstream\Jetstream::hasTermsAndPrivacyPolicyFeature())
				<div class="mt-4">
					<x-label for="terms">
						<div class="flex items-center">
							<x-checkbox name="terms" id="terms" required />

							<div class="ms-2">
								{!! __('I agree to the :terms_of_service and :privacy_policy', [
								'terms_of_service' => '<a target="_blank" href="'.route('terms.show').'"
									class="underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">'.__('Terms
									of Service').'</a>',
								'privacy_policy' => '<a target="_blank" href="'.route('policy.show').'"
									class="underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">'.__('Privacy
									Policy').'</a>',
								]) !!}
							</div>
						</div>
					</x-label>
				</div>
				@endif


				<!-- Register Button -->
				<div class="mb-3">
					<button type="submit" oneclick="getValue" class="btn btn-block">{{ __('Register') }}
					</button>
				</div>
				
				<div class="text-center mb-5" style="color: #777;">Already have an account?
					<a class="login-link" href="{{ route('login') }}">Login here</a>
				</div>
			</form>
		</div>
		<!-- FORM END -->

		<div class="col-md-1 infinity-right-space"></div>
	</div>
</div>

I want submit my data using this form. It i does not submit any data. My route are correct .I hope there is the problem....

0 likes
1 reply
gych's avatar

Maybe there is a validation error, you did not add those to your form. Can you share the controller method that's used for this form?

Please or to participate in this conversation.