I have created a simple checkout form for use with a mobile website:
<form action="" method="GET">
First Name:<br />
<input type="text" name="firstname" />
<br /><hr />
Last Name:<br />
<input type="text" name="lastname" />
<br /><hr />
Phone Number:<br />
<input type="text" name="phonenumber" />
<br /><hr />
Address:<br />
<input type="text" name="address" />
<br /><hr />
Town:<br />
<input type="text" name="town" />
<br /><hr />
County:<br />
<input type="text" name="county" />
<br /><hr />
Postcode:<br />
<input type="text" name="postcode" />
<br /><hr />
Email:<br />
<input type="text" name="email" />
<br /><hr />
<input type="submit" value="Submit" />
</form>
The information created needs to pass in a URL only. The base URL is given, in this case, domain.com. The URL that is created and navigated to should look like: domain.com/p=firstname+lastname+123+456+7890+123+address+street+etc…..
Because this is for a mobile site, JavaScript cannot be used. PHP would be ideal as I have some knowledge, but other solutions may be possible.
Any guidance on where to start or what to research?
Anders,
If you are needing to post this to another site, then you should use a redirect.
Here are the steps needed ->
To do a redirect in PHP: