| | |
create a form with a post
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Nov 2008
Posts: 15
Reputation:
Solved Threads: 1
You may want to have a look here -
http://www.daniweb.com/forums/thread159723.html
http://www.daniweb.com/forums/thread159723.html
access & asp, or php?
this is the php forum, here is a php solution to the question asked, no database mentioned in the op, what are you actually looking for
this is the php forum, here is a php solution to the question asked, no database mentioned in the op, what are you actually looking for
php Syntax (Toggle Plain Text)
<?php if($_POST){ echo 'submitted were<br>'; foreach ($_POST as $key => $value) { echo $key." value ".$value.'<br>';} } ?> <form action='<?php echo $_SERVER['php_self']; ?>' method='post'> <input type='checkbox' value='yes' name='1'> checkbox 1<br> <input type='checkbox' value='yes' name='3'> checkbox 3<br> <input type='checkbox' value='yes' name='5'> checkbox 5<br> <input type='checkbox' value='yes' name='7'> checkbox 7<br> <input type='checkbox' value='yes' name='9'> checkbox 9<br> <input type='radio' value='yes' name='10'> Yes <input type='radio' value='no' name='10'> No<br> <button TYPE="submit" name="submit" value="submit" onclick="return(confirm('Are you sure, \nthis is such a trivial example'));">Submit</button> </form>
Last edited by almostbob; Mar 8th, 2009 at 8:22 pm.
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
•
•
Join Date: Mar 2009
Posts: 27
Reputation:
Solved Threads: 0
its for a ms access database and php, i want customers to be able to select or tick various things they want in our services and when they click the submit button depending on the things they selected our database should return two of our package that will best suit them
Last edited by achiman; Mar 9th, 2009 at 1:34 am.
•
•
•
•
its for a ms access database and php, i want customers to be able to select or tick various things they want in our services and when they click the submit button depending on the things they selected our database should return two of our package that will best suit them
Before you begin, you need to read a lot, and practice on a dummy dataset
you need the details on how to connect to your database and pull information from it, and you want relational logic to select the best matches
this is not a trivial exercise
'best match' is a very difficult logic to implement
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
•
•
Join Date: Mar 2009
Posts: 27
Reputation:
Solved Threads: 0
first of all i want to thank you for your reply so far but i have actually conneted to my mc access database and pulled all the information i need from it and have also created a form but it doesnt do the job for me. All i want for example is if a customer says they want a package btw 30 - 50 pounds i want if to display packages only btw that price. i have tried several if statements but they keep giving error.
Now we're closer
and the fix is probably easy (not maybe for you and me but there are code gurus)
Post the wrong code in [code=language] tags, and 99% likely someone will be able to debug the error
if there is a result, the form is likely ok
if there are wrong results, the back end select function needs some tweaking
something like a wrong expression used to select $price < 50 $price > 30
and the fix is probably easy (not maybe for you and me but there are code gurus)
Post the wrong code in [code=language] tags, and 99% likely someone will be able to debug the error
if there is a result, the form is likely ok
if there are wrong results, the back end select function needs some tweaking
something like a wrong expression used to select $price < 50 $price > 30
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
•
•
Join Date: Mar 2009
Posts: 7
Reputation:
Solved Threads: 1
Try to connect Ms Access by this way,
http://www.configure-all.com/php_access.php
It will help you....
http://www.configure-all.com/php_access.php
It will help you....
![]() |
Similar Threads
- Parsing html form. (PHP)
- very quick question about mailing a form and the post command (PHP)
- Pls help I need it badly thanks... (PHP)
- associative arrays in JS and POST to PHP (PHP)
- form post error (ASP)
- HTML Form post to PHP? (PHP)
- Desperate Again Please HELP PHP (PHP)
- Fields in HTML Form (Perl)
- HYPERLINK with PHP POST (PHP)
Other Threads in the PHP Forum
- Previous Thread: php/mysql dates
- Next Thread: Automatically Redirecting a user
| Thread Tools | Search this Thread |
.htaccess ajax apache api array beginner binary broken buttons cakephp checkbox class cms code cron curl database date directory display dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail mediawiki menu mlm mod_rewrite multiple mysql number oop paypal pdf php phpincludeissue phpmyadmin problem query radio random recursion regex remote script search server sessions sms soap source sp space speed sql subdomain syntax system table tag tutorial update upload url validation validator variable vbulletin video web webdesign websphere white xml youtube






