-
Notifications
You must be signed in to change notification settings - Fork 1
/
edituser.php
46 lines (38 loc) · 1.3 KB
/
edituser.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<? session_start(); ?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml">
<?
include("connect.php");
include("stdio.php");
$user_edit = $_REQUEST["edit_user"];
$new_number = $_REQUEST["new_number"];
//Firstly we update the database with the new number, and then we fetches it.
$resultt = mysql_query("UPDATE `avxml_entries` SET phone = '$new_number' WHERE ID='$user_edit'");
$resultat = mysql_query("SELECT ID, phone, name FROM `avxml_entries` WHERE ID='$user_edit'");
while ($raekke = mysql_fetch_array($resultat)) {
extract($raekke);
}
mysql_close($conn);
?>
<menu id="postedit">
<audio>The new number on <? echo $name; ?> is <? echo $phone; ?></audio>
<prompt>
<audio src="<?php get_audio(16, "file") ?>"> <!-- we present the user with some options -->
<?php get_audio(16, "message") ?>
</audio>
<audio src="<?php get_audio(17, "file") ?>">
<?php get_audio(17, "message") ?>
</audio>
</prompt>
<choice next="number.php">back</choice>
<choice next="edit.php">edit</choice>
<choice next="main_menu.php">main menu</choice>
<choice next="#exit">exit</choice>
</menu>
<form id="exit">
<block>
<audio src="<?php get_audio(22, "file") ?>">
<?php get_audio(22, "message") ?>
</audio><exit />
</block>
</form>
</vxml>